Skip to content

Commit

Permalink
Add install guide in README (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
kination authored May 3, 2021
1 parent b9b3d86 commit 9c7cd9a
Showing 1 changed file with 36 additions and 24 deletions.
60 changes: 36 additions & 24 deletions ballista/ui/scheduler/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,39 @@

# Ballista UI


## Available Scripts

In the project directory, you can run:

### `yarn start`

Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

The page will reload if you make edits.\
You will also see any lint errors in the console.

### `yarn test`

Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### `yarn build`

Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
## Start project from source

### Run scheduler/executor
First, run scheduler from project:
```shell
$ cd rust/scheduler
$ RUST_LOG=info cargo run --release
...
Finished release [optimized] target(s) in 11.92s
Running `/path-to-project/target/release/ballista-scheduler`
[2021-05-02T05:11:17Z INFO ballista_scheduler] Ballista v0.5.0-SNAPSHOT Scheduler listening on 0.0.0.0:50050
[2021-05-02T05:14:10Z INFO ballista_scheduler] Received get_executors_metadata request
```

and run executor in new terminal:
```shell
$ cd rust/executor
$ RUST_LOG=info cargo run --release
Finished release [optimized] target(s) in 0.09s
Running `/path-to-project/target/release/ballista-executor`
[2021-05-02T05:11:30Z INFO ballista_executor] Running with config: ExecutorConfig { host: "localhost", port: 50051, work_dir: "/var/folders/y8/fc61kyjd4n53tn444n72rjrm0000gn/T/.tmpAZ0rn4", concurrent_tasks: 4 }
[2021-05-02T05:11:30Z INFO ballista_executor] Ballista v0.5.0-SNAPSHOT Rust Executor listening on 0.0.0.0:50051
```
### Run Client project
```shell
$ cd ui/scheduler
$ yarn
yarn install v1.22.10
[1/4] 🔍 Resolving packages...
...
$ yarn start
Starting the development server...
```
Now access to http://localhost:3000/

0 comments on commit 9c7cd9a

Please sign in to comment.