Canadian citizenship testing web app
git clone https://github.com/braddillon/citizenshipHelper.git
Pick whichever docker-compose file you want to use (dev vs production, ignore multi).
Symbolic link it to docker-compose.yml so you don't have to keep specifying the file name on every docker-compose call.
ln -s docker-compose.dev.yml docker-compose.yml
Copy exampleCitizenship.env to citizenship.env
Edit citizenship.env with your environment variables.
Ignore exampleLetsEncrypt.env unless you are using the docker-compose.multi.yml
This ensures the db is setup and ready before django tries to migrate
docker-compose run --rm probe
docker-compose up
cp mockData.sql ./db/
docker exec -it citizenship_db_dev /bin/bash
psql -U username -d password < /var/lib/postgresql/data/mockData.sql
In the dev environment:
You can find the react frontend on localhost:3000.
The django backend on localhost:80
localhost:80/api
localhost:80/admin
All files should hotreload as you edit the source files in frontend/backend directories