Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 1.17 KB

README.md

File metadata and controls

32 lines (20 loc) · 1.17 KB

Portfolio

Portfolio website

App structure

This is a monorepo containing one app.

  • /jobs/: the Django backend

Setup to run dev server

  1. Install most recent version of Docker Desktop

  2. Build the project: docker-compose -f docker-compose.yml build

  3. Run the dev server: docker-compose -f docker-compose.yml up

  4. You should see the site is running on the backend ( localhost:8000 ).

Step 1 is a one-off step. Step 2 is only required if you have materially altered the project since last build, e.g. by changing /requirements.txt. Code changes are picked up automatically by the Django and they will reload the project modules upon detecting a change.

Setup to run api tests

You do not need to follow the previous sections to run the tests. Just:

  1. Install most recent version of Docker Desktop

  2. Build the project: docker-compose build

  3. docker-compose run django test

Step 1 is a one-off step. Step 2 is only required if you have materially altered the project since last build, e.g. by changing /requirements.txt.