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-compose
installed 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.js
andnpm
installed on your machine. (npm
usually gets installed along withNode.js
).Once you did that, run
npm install
to install all dependencies and
npm start
to 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
dist
directory if it exists. - Execute
docker-compose exec web npm run build
while the container is running.
- Delete the
- If you've set up the project using npm directly:
- Delete the
dist
directory 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 master
git pull
git checkout -b <branch-name>
npm install
npm 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 test
Or, to have the tests run in watch mode (re-run every time the test/source files are changed), use:
npm test -- --watch