This dashboard has been developed using Diamond-React application framework.
Using nodeenv:
nodeenv --prebuilt -n 14.17.0 env
Then activate the environment:
. env/bin/activate
And install the proper npm version:
npm i -g npm@7.13.0
To install the dependencies:
npm install
Copy the .env.example
:
cp .env.example .env
and fill all the values (REACT_APP_API_BASE_URL
is the most important one).
To run the application locally:
npm start
Open localhost:3000
in your browser (should open automatically).
To test the project locally:
npm run test
Build a new Docker image for the project:
docker build . -t scio-fairscribe
Run the project using Docker:
docker run -d -p 3000:3000 scio-fairscribe
Use npm run build
to generate the production-ready app. The build
folder will contain all needed files.