zmallen / ss-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:Python 93.2%Language:Shell 3.7%Language:Dockerfile 3.1%