Skip to content

Repository files navigation

A REST API for DustDuino air quality sensors

Deploy

For API documentation click here.

Deployment to Heroku

Use the heroku button above or manually create an app on heroku and deploy. For configuration purposes, the following table maps environment variables to their Django setting:

Environment VariableDjango SettingDevelopment DefaultProduction Default
DJANGO_SECRET_KEYSECRET_KEYCHANGEME!!!raises error
DJANGO_PORTAL_URLPORTAL_URLhttp://127.0.0.1:8000http://127.0.0.1:8000

Installation on local machine

Create a virtual environment

virtualenv venv
source venv/bin/activate

Install the requirements

pip install -r requirements.txt

Initialize the database

python sensor_rest_api/manage.py syncdb

Start the server

python sensor_rest_api/manage.py runserver

About

A REST API for dustDuino air quality sensors

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages