Coder Social home page Coder Social logo

kingkino / batchlabs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from azure/batchexplorer

0.0 2.0 0.0 2.44 MB

A client tool to help create, debug and monitor Azure Batch Applications

License: Other

TypeScript 81.71% HTML 10.97% CSS 5.47% JavaScript 0.99% Python 0.84% Shell 0.02%

batchlabs's Introduction

BatchLabs

Build Status

Note: BatchLabs is in beta. We don't provide any installer/packaged binaries as of now. You will need to build this app yourself.

This is the readme for the 'master' branch which contains the latest changes, 'stable' may differ from this Stable readme

Description

Batch Labs is a tool to manage your Azure Batch accounts. The goal is to implement a great user experience that will help you debug, monitor and manage your pools, jobs and tasks. It will also include expermiental features such as Batch Templates in the aim to improve your Batch experience. We are open to any feedback, ideas and contributions you might have.

Getting started

1. Prerequisites

  • Install node.js version 6.9 or greater. Download
  • Install python 3.6 (doesn't need to be in the path if that breaks your environment)
  • Install yarn npm install -g yarn

2. Clone the repo

  • At stable branch git clone -b stable https://github.com/Azure/BatchLabs
  • Or for the latest changes git clone https://github.com/Azure/BatchLabs

Move to the directory cd BatchLabs

3. Install the dependencies

yarn install
pip3 install -r python/requirements.txt # or pip if on windows or only have python 3.6 installed

Note: You can also use npm install at your own risk. However please do not submit an issue if you didn't use yarn install. Yarn will make sure you have the right set of dependencies, which reduces the likelihood of any unexpected build issues relating to third party packages.

3.5 Setup some configuration(Only in certain case)

If you didn't installed python in the path you will need to let batchlabs know where it is. Set an environment variable called BL_PYTHON_PATH with that path to the python executable. Batchlabs will look first to see if this environemnt variable is set if not try python3 and then python to find an installation of python 3.6

4. Build and run the application

# Make an executable, this will bundle all needed dependencies including node and python
npm run build-and-pack

# Manual
npm run build:prod
npm run electron:prod

# To debug errors
npm run build
npm run electron

Developers

Dev docs

For developers, you can set up a development environment as follows: Use yarn install instead of npm install. This ensures a consistent build environment with the right set of dependencies Migrating from npm to yarn

Start the dev server

npm run dev-server

Start electron

# In the command line
npm run dev-electron

# In VSCode just press F5

The dev-server and dev-electron support hot reload for a better development experience. Simply saving a file will cause the UI to refresh to your updated changes.

Note: Changes to any files in the node client directory ('src/client') require restarting the application.

If you're using VSCode (recommended) we suggest you use the following extensions:

  • Debugger for Chrome
  • EditorConfig for VS Code
  • TSLint

Please also take a look at the coding guidelines for this repo for best practices.

Testing

Testing doc

Editor

In vscode install the editorconfig extension

Detailed commands:

Magic command (starts the server and electron in dev mode)

npm run dev

Build project

npm run build

Run app

npm run electron

Run watch (this will build files on save)

npm run watch

Run dev server (this will handle the refresh of files and later should have live reload)

npm run dev-server

Run dev electron (to use the dev server you need to run this)

npm run dev-electron

License

Batch labs is licensed under MIT See license Some icons are under Creative Commons Attribution-ShareAlike 3.0 Unported See license

batchlabs's People

Contributors

ascobie avatar davefellows avatar johnnyzhang82 avatar paselem avatar timotheeguerin avatar yanrez avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.