A test project of Auth0 integration on django w/ django-ninja
-
Install Homebrew
-
Install dependencies
brew install direnv
brew install pipenv
brew install postgresql
brew install [email protected]
-
Follow the direnv install guide to hook direnv to your shell
-
Add
<PROJECT_ROOT_DIR>/app/.envrc
layout python <PYTHON_DIR>
dotenv <PROJECT_ROOT_DIR>/.env.local
- Activate virtual env and install python dependencies
cd <PROJECT_ROOT_DIR>/app
direnv allow .
source .direnv/python-<PYTHON_VERSION>/bin/activate
pipenv install --dev
-
Install Docker Desktop
-
Build and run containers
cd <PROJECT_ROOT_DIR>
docker-compose build
docker-compose up -d