We recommend that you use Asteroid either via an installer or the docker image. However, if you wish to construct everything separately, follow these instructions for the frontend.
$ git clone https://github.com/asteroid-music/asteroid-js.git
$ cd asteroid-js
$ npm install
To run tests, call
$ npm run test
To build, call
$ npm run build
Set up asteroid-flask as per its own instructions.
Then, build the frontend and copy or move the dist
folder to a folder named 'web' in the directory of asteroid-flask.
For example, if asteroid-flask and asteroid-js were cloned from the same directory:
$ cd asteroid-js #If not already in this folder
$ npm run build
$ cp -r dist ../asteroid-flask/web
Then, run the flask server as per normal:
$ cd ../asteroid-flask #If not already in this folder
$ flask run