Skip to content

asteroid-music/asteroid-js

Repository files navigation

asteroid-js

The React.js frontend part of asteroid-music

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.

Prerequisites

Installation

$ git clone https://github.com/asteroid-music/asteroid-js.git
$ cd asteroid-js
$ npm install

Testing

To run tests, call

$ npm run test

Building

To build, call

$ npm run build

Deployment

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

Releases

No releases published

Packages

No packages published