Django backend boilerplate
- Swagger
- API Sample (health check)
- dev mysql database (docker-compose)
$ python3 -m venv venv
$ docker-compose up -d
$app python manage.py makemigrations --settings=app.settings.development
$app python manage.py migrate --settings=app.settings.development
$app python manage.py runserver --settings=app.settings.development
-
$app export $ (grep -v '^#' ..env | xargs) - $app envsubst < zappa_settings.json.tpl > zappa_settings.json
{
"dev": {
"django_settings": "$SETTINGS",
"profile_name": "$AWS_PROFILE",
"project_name": "django-zappa-template",
"runtime": "python3.6",
"s3_bucket": "$BUCKET_NAME",
"aws_region": "$REGION",
}
}
- zappa deploy