This is the main frontend repository for the software part of a P3 project created by SW3 group 6 at Aalborg University in Copenhagen.
Copy .env.local.sample into .env.local and fill out the values for the
environment variables in the .env.local file.
To start the Docker Compose project, run:
docker compose up -dor, when using JetBrains WebStorm, by running the Docker Compose run configuration.
Then, start a new shell session in the node container:
docker exec -it nova-dashboard-front-end-node-1 /bin/shThe first time the project is cloned, or when dependencies in package.json or
package-lock.json have changed, in the node container run:
npm installNow the development server can be started in the node container:
npm run devThe front end is now accessible at localhost:3000.
When code is pushed to the remote repository, the
Formatting, Linting and Build workflow is
run.
Therefore, check your code for errors before committing and pushing by running the tools in the
node container first:
npm run prettier && npx eslint .To check whether the project can be compiled for production, run the build command:
NODE_ENV=production npm run buildThen, start the production server with:
NODE_ENV=production npm run startAfter a finished development cycle, exit the node container and run:
docker compose down