Skip to content

A flask based web application to manage pollution data recorded by the pollution monitoring system.

Notifications You must be signed in to change notification settings

Jhalak46/pollution-monitor

Repository files navigation

pollution-monitor

A flask based web application to manage pollution data recorded by the pollution monitoring system.

This project is being made under Design Practicum IIT Mandi.

Deployed to Heroku at https://pollution-monitor-flask.herokuapp.com.

Local Deployment

  1. Fork the repository.

  2. Clone the forked repository.

git clone https://github.com/user-name/pollution-monitor.git
  1. Enter the repository.
cd pollution-monitor
  1. Create a python virtual environment with python=python3.

  2. Activate the virtual environment.

  3. Install required python packages from requirements.txt.

pip install -r requirements.txt
  1. Download and install PostgreSQL.

  2. Create database pollution_db in psql. Refer here.

  3. Set environment variables.

export APP_SETTINGS="config.DevelopmentConfig"
export DATABASE_URL="postgresql://localhost/pollution_db"
  1. Remove folder migrations and migrate database.
rm -rf migrations
python manage.py db init
python manage.py db migrate
python manage.py db upgrade
  1. Deploy app.
python manage.py runserver
  1. Visit URL http://127.0.0.1:5000/

About

A flask based web application to manage pollution data recorded by the pollution monitoring system.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published