Skip to content

Flux-Coordinator/flux-frontend

Repository files navigation

Flux-Frontend

Tested with Jest GitHub license Sonar Cloud Reliability Rating Sonar Cloud Coverage Sonar Cloud Quality Gate Build Status Code Style: prettier Dependencies DevDependencies peerDependency Status

How to run this application in development mode

Follow the guide below to run this application in development mode.
Prerequisites: NodeJS 8 and Yarn (recommended) or NPM.

  1. Download the repository
  2. Install the dependencies using yarn or npm install
  3. Run the application using the yarn start or the npm 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>

Run in Production Mode

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.

More informations

For more information about running and deploying the application, you can consult the CRA documentation here.