Skip to content

zmallen/ss-api

Repository files navigation

ss-api

Silly Simple API

This is a Django Rest Framework template for deploying an app on https://fly.io

Some features of this template:

  1. No session authentication - it assumes you use fly.io, which gives you access to run commands directly via manage.py
  2. 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
  3. Local dev via docker compose and a Dockerfile to run the app
  4. OpenAPI and Swagger ready via drf-yasg package
  5. 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published