Silly Simple API
This is a Django Rest Framework template for deploying an app on https://fly.io
Some features of this template:
- No session authentication - it assumes you use fly.io, which gives you access to run commands directly via
manage.py
- HTTP health checks - using fly.io's http checks, you can have fly connect to this app and issue a basic request against
/ping/
to check DB connectivity - Local dev via
docker compose
and aDockerfile
to run the app - OpenAPI and Swagger ready via
drf-yasg
package - Ready to go: clone and run on fly via
fly launch
, then run a migration and get a dev token via:
fly ssh console -C 'bash /app/provision_db.sh'
fly ssh console -C 'python /app/manage.py migrate
fly ssh console -C 'python /app/manage.py getdevtoken'
For a blog post going into more detail of the app makeup, please go to:
https://dev.to/teachmetechy/django-rest-framework-on-flyio-582p