Skip to content
/ apitemplate Public template

Django Rest API template for fast project execution

Notifications You must be signed in to change notification settings

RapidMVPHQ/apitemplate

Repository files navigation

apitemplate

Build Status Built with

App templates from rapidmvp. Check out the project's documentation.

Features:

Just clone it, add your features, deploy

  • JWT/Social Authentication
  • Deployment ready (Heroku)
  • CORS handling
  • Bring Your Config

Prerequisites

Local Development

Start the dev server for local development:

docker-compose up

Run a command inside the docker container:

docker-compose run --rm web [command]

Production Environment (Heroku optimized)

Heroku Config Vars

DATABASE_URL: ***
DJANGO_AWS_ACCESS_KEY_ID: ***
DJANGO_AWS_REGION: ***
DJANGO_AWS_SECRET_ACCESS_KEY: ***
DJANGO_AWS_STORAGE_BUCKET_NAME: ***
DJANGO_DEBUG: ***
DJANGO_SECRET_KEY: ***
DJANGO_SUPERUSER_EMAIL: ***
DJANGO_SUPERUSER_PASSWORD: ***

Heroku Deploy Commands:

  • Login:
heroku container:login
  • Build the image:
# Apple Mac/ARM (M1):
docker buildx -t registry.heroku.com/<app_name>/web .
# Non-M1 Machines:
docker build -t registry.heroku.com/<app_name>/web .
  • Push to the registry:
docker push registry.heroku.com/<app_name>/web
  • Release the image:
heroku container:release -a <app_name> web

About

Django Rest API template for fast project execution

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published