This repository should work on Linux and Mac.
You will need:
docker(install) You can use Docker Engine on Linux.docker compose (V2)(install)transcrypt(install)inv(install)
-
ngrok(install)For testing inbound emails.
If you are using Windows ensure that git is setup to use LF not CLRF
git config core.autocrlf false
git rm --cached -r .
git reset --hard
Environment variables are stored in .env files and encrypted using transcrypt.
You can list all encrypted files with transcrypt --list.
To intialise the repository on cloning, run:
transcrypt -c aes-256-cbc -p $TRANSCRYPT_PASSWORDThe transcrypt password is available in the Tech team Bitwarden account.
Next, build the Docker environment that we'll be using:
# Build frontend container
inv build -f
# Build Django container
inv buildYou can set up your database with the reset command:
inv resetCreate a user for local development and testing using your Anika email address:
inv superuser your.name@anikalegal.comFinally you can bring up the web server:
inv devYou should now be able to access:
- The Anika website at
http://localhost:8000. - The Clerk CMS at
http://localhost:8000/clerk. - The Django Admin Interface at
http://localhost:8000/admin.
You can list other available commands using the --list argument of the
invoke command:
inv -l