codersforcauses / django-nextjs-template

Django + Nextjs Template: Standardised CFC Tech Stack
MIT License
0 stars 0 forks source link
cfc-standards

django-nextjs-template

Django + Nextjs Template: Standardised CFC Tech Stack

Get started

  1. Activate the dev container in VSCode
  2. Start the db, server and client with docker compose up
  3. Server is at localhost:8000, client at localhost:3000

Server

Create and run migrations

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

Other

Get Intellisense

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.

Editing Docker stuff

If you modify anything in the docker folder, you need to add the --build flag or Docker won't give you the latest changes.

Custom env vars

Edit the .env file in the respective directory (client or server).