- Docker
- Nodejs version 12 or greater
- Highcharts License
- Python (Only required for generating data)
- Navigate to the root project directory
- Configure the environment variables
- Copy and rename
.env.example
to.env
- Change the variable values inside
.env
- Copy and rename
- Install backend
cd backend && npm i
- Install frontend
cd frontend && npm i
- Obtain Highcharts license and install Highcharts
$ cd frontend
$ npm i highcharts highcharts-more highcharts-react-official
- Start Docker
- Start the application with
docker-compose up
Where to access the application?
- Frontend is running on localhost:80
- Backend is running on localhost:4000
If new packages are installed you may have to run
docker-compose up --build
This requires feeding the applications their environment variables or it will run without a database/api connection.
- Start frontend
cd frontend && npm start
- Start backend
cd backend && npm run dev
- If you run Windows be sure to set line separator settings to LF (Windows), especially for the files
init-mongo.sh
andseed-mongo.sh
- If you need to delete the Docker volume:
- Run
docker-compose down
- Run
docker volume ls
and copy the name of the volume you want to delete - Run
docker volume rm <name of the volume>
The project is set up with unit tests. These can be run with npm run test
or npm run test:watch
for both the frontend and backend application.
This project is licensed under the GPL-3.0 License - see the LICENSE file for details. Do note the project uses Highcharts which requires a custom license to use. To run the project you therefore need to obtain a Highcharts license and install the Highcharts dependencies by your self.