Django + Nextjs Template: Standardised CFC Tech Stack
- Activate the dev container in VSCode
- Start the db, server and client with
docker compose up
- Server is at
localhost:8000
, client atlocalhost:3000
If the models are updated, be sure to create a migration:
docker container exec server python manage.py makemigrations # create a new migration OR
dxc server python manage.py makemigrations
If you're in the dev container, this should be done already. You can run poetry install
and npm install
in the correct folders to get the latest dependencies.
If you modify anything in the docker
folder, you need to add the --build
flag or Docker won't give you the latest changes.
Edit the .env
file in the respective directory (client or server).