PollutionMap
Technologies Used:
Python Django React.js Leaflet.js
APIs: BitSpi Airpollution API Google Directions API
Development Workflow
Setup your development environment
Prerequisites
python 3.7+
node 10.x.x+
npm 5.x+
pipenv
- Fork and clone this repo.
$ git clone http://github.com/gurpreetsingh00885/pollutionmap.git
- Change working directory into the repo, activate your virtual environment and install the backend dependencies.
$ cd pollutionmap
$ pipenv shell
(env) $ pipenv install
- Change the working directory into the frontend react app and install the frontend dependencies.
(env) $ cd frontend
(env) $ npm install
- Start the django development server
(env) $ cd ..
(env) $ python manage.py migrate
(env) $ python manage.py runserver
- Run the frontend app in another shell
(env) $ cd frontend
(env) $ npm run watch
Open http://localhost:8000/ in your browser.
Add a new remote to your fork if you want to contribute
git remote add myfork https://github.com/<username>/pollutionmap.git
Log in or sign up for Devpost to join the conversation.