Django based web server for running drones from a browser
- Clone and run
docker compose up
💥
Make sure to paste or set your env variables in env/secrets.env
# Run Django and migrate:
docker compose run --rm django python manage.py migrate
# Connect to BD
docker compose run --rm django ./ikarodjango/manage.py shell_plus
# Create demo data (Inside shell_plus)
u = User.objects.create_user(username="test", email="[email protected]", password="testtest")
d = Drone.objects.create(plate="00000000", owner=u)
r = Room.objects.create(host=u, drone=d, videoroom_id="1234")
Used ports: 7088 - admin 8088 - drone / http 8188 - front / ws Review config files to check additional ports
# Run drone simulator, make sure venv is activated
dronekit-sitl copter --home=6.149014,-75.393962,0,180
# Run tukano service
python src/tukano_service.py
# Run janus publisher (dev cam)
python src/janus.py http://<DOCKER_IP>:8088/janus
# Run Django and collect statics
docker compose -f docker-compose.prod.yml run --rm django python manage.py collectstatic --no-input