Follow the guide below to run this application in development mode.
Prerequisites: NodeJS 8 and Yarn (recommended) or NPM.
- Download the repository
- Install the dependencies using
yarn
ornpm install
- Run the application using the
yarn start
or thenpm run start
command.
The URI for the connection to the flux-server instance needs to be set either as an environment variable named REACT_APP_SERVICE_URI
or using a .env file, in which you have the following content:
REACT_APP_SERVICE_URI = <sever_uri>
To run this application in production mode, you need to build it first, using the yarn build
or npm run build
command. After the command has run through, you will find the built application in the /build folder. You can deploy that folder on your preferred static webserver or using serve.
To install serve globally, you can use the yarn global add serve
or npm install -g serve
. After the installation is complete, you can use the command serve -s build
, where build the /build folder.
If you use a webserver other than serve, you will need to make some changes. Follow the guide here.
For more information about running and deploying the application, you can consult the CRA documentation here.