API desenvolvida para a disciplina EEL7814 - Projeto Nível I em Telecomunicações I. A API conta com um endpoint para receber a requisição do webhook da TTN. Através dele, os dados do dispositivo são recebidos pela API, onde então são registrados no banco de dados da aplicação.
Agradecimento especial à Jungle Devs por disponibilizar o boilerplate do Django para o desenvolvimento do projeto.
The options available are:
- POSTGRES
- MYSQL
We currently have 2 options:
-
REST auth
-
REST auth with social accounts
Current providers: - Facebook - Google
To use this boilerplate follow this steps:
- Clone this repository
- Run:
python setup.pyand follow the steps
Once the setup is done, you'll be able to run the backend:
-
Create the virtual environment and activate it
virtualenv -p python3 venv source venv/bin/activate -
Install the requirements
pip install -r requirements.txt -
Start the dockers
docker-compose up -
Run the server
You need a .envfile with your environment variables, here's an example file:
LOAD_ENVS_FROM_FILE='True'
ENVIRONMENT='development'
SECRET_KEY='#*=JungleDjangoBoilerplate=*#'
DEFAULT_FROM_EMAIL='Boilerplate <boilerplate@jungledevs.com>'
DATABASE_URL='postgres://postgres:postgres@localhost:5432/boilerplate'
SENTRY_DSN='{sentry_key}'
AWS_STORAGE_BUCKET_NAME='django-be'