This web app uses sensor data from the openSource project luftdaten.info to predict particulate matter development for Germany. The project was implemented as part of the base.camp of the Department of Computer Science at the University of Hamburg.
To start developing, there are two options to get the project up and running:
-
via Docker
This requires you to have
docker-composeinstalled locally.Run the following commands to start a local development server:
docker-compose build --no-cache web docker-compose up
The first command will have to be re-run every time a dependency changes.
-
via Node.js directly
For this option, you need
Node.jsandnpminstalled on your machine. (npmusually gets installed along withNode.js).Once you did that, run
npm install
to install all dependencies and
npm startto start the development server.
To create a production build, you have two options again:
- If you've set up the project using Docker:
- Delete the
distdirectory if it exists. - Execute
docker-compose exec web npm run buildwhile the container is running.
- Delete the
- If you've set up the project using npm directly:
- Delete the
distdirectory if it exists. - Execute
npm run build.
- Delete the
The generated HTML/CSS/JavaScript files should now be in the dist directory.
To contribute please follow these few steps:
git checkout mastergit pullgit checkout -b <branch-name>npm installnpm start- Apply your changes
git add .git commit -m "commit message"git push -u origin <branch-name>- Go to GitHub and open a pull request
To run all tests, use
npm testOr, to have the tests run in watch mode (re-run every time the test/source files are changed), use:
npm test -- --watch