Skip to content

curonny/django_drones

Repository files navigation

Docker run

-docker-compose up --build

Run solution without docker

Create .env file with params

-DB_NAME=dron
-DB_USER=django
-DB_PASSWORD=django

Create db with that name and run

-python manage.py makemigrations
-python manage.py migrate
-Create superuser : python manage.py createsuperuser

Export environment

-export DJANGO_SETTINGS_MODULE=dron_project.settings

Start periodic task run:

-celery -A dron_project beat -l info

Api Doc

-/api/drones/ => Get and POST Drones
-/api/medications/ => Get and POST Drones
-/api/medicationload/ => Load medication in dron
-/api/medicationload_filters?drone_id= id => Where id is the dron to search
-/api/drones_to_loading/ => Get drons for loading   

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published