Skip to content

Getting Started

Alvin Chow edited this page Jan 18, 2021 · 1 revision

Getting Started

Dependencies

This guide is for OS X

Setup Repo

Checkout

git clone --recurse-submodules [email protected]:alvinchow86/python-backend-template.git

If you forget the --recurse-submodules flag when cloning, then run this to checkout the submodules

git submodule update --init

Config Vars

Create a local_config.py file at the project root to override environment variables.

AWS_ACCESS_KEY = '...'
AWS_SECRET_KEY = '...'

Start Docker

Set up the Docker network (one time thing)

docker network create alvinchow

Build Docker image

docker-compose build

Start containers

docker-compose up -d

Once Docker is up, get into a container and run this to initialize and seed the database

docker-compose exec web bash

manage seed local --reset-db    (or ./manage.py seed local --reset-db)

Troubleshooting

You may need to do pip install -e . the first time in a Docker container.

Clone this wiki locally