Service to run flux in the browser.
For development run the server and client separately
To run the server
$ cargo run -- --flux-path /path/to/fluxThis will start a server in port 3000.
Alternatively, you can install cargo watch:
$ cargo install cargo-watchand run the server with
$ cargo watch -x "run -- --flux-path /path/to/flux"Install dependencies
If you are running for the first time, install dependencies first
$ cd client
$ npm installRun vite server
$ cd client
$ npm run devThis will start a server for the client with hot reload. It prints the URL where it is served.
To add an example put a file in the examples/ directory and then add an appropriate entry to config.yaml. Files are checked as if they were inside the lib/ directory, which means files in that directory can be declared as modules inside example files. See kmeans.rs for an example that declares the rvec module.
First run
$ ./install.shThis will build the server and client, and then move all necessary files to ./dist.
To start the server
$ cd dist
$ ./flux-playground --flux-path /path/to/flux