- See steps 1, 2, 3 and 4 below
- Run ´docker-compose up -d --build` (´-d´ is for detached mode, sometimes you want to see logs and can remove this)
- To seed the dev database with fake data run:
As defined in droprecreatedb.sh
docker exec -u=postgres postgres sh /scripts/drop_and_recreate_database.sh docker exec django bash seed.sh
- What's that? You would like to write frontend code and see live changes without reloading the docker container? Ok, fine. Go to
src/angular_frontend
and typenpm start
in your terminal. (you need node and runnpm i
once in the same folder)
- Get docker.
- Get docker-compose.
- Confirm that docker is installed (type 'docker -v' and 'docker-compose -v'), docker should be >=18 and docker-compose >=1.22
- Clone the project, cd into the project directory.
- Run
bash development.sh
If everything worked you should be able to see the angular application at localhost and/or 127.0.0.1.
The database is seeded using migrations defined in
./src/django_backend/fg/api/seed_migration.py
.
Simply bring the docker containers up and run droprecreatedb.sh
.