This is a Django/React starter project with lots of batteries included. I created it to get started on new projects more quickly and stay up-to-date on the tools I like to use. I hope you'll get something out of it too.
-
Install the following:
-
To start the backend and watch for code changes, run the following in a terminal window:
git clone https://github.com/johnthedebs/basicproject.git cd basicproject # OR django-admin startproject <project_name> --template https://github.com/johnthedebs/basicproject/archive/main.zip cd <project_name> docker-compose up -d docker-compose exec -it app bash $ runserver
-
To build the frontend and watch for code changes, run the following in a second terminal window:
npm install npm start
-
Visit
localhost:8000
in a browser
Cypress tests with npm run test
or npm run test-headless
.
https://docs.cypress.io/guides/getting-started/writing-your-first-test.html#Write-your-first-test
- Set SECRET_KEY in settings.py
npm install
inops/lets
directory- Fill out
ops/lets/config/example-settings.js
and rename tosettings.js
- Set SENTRY_DSN in vite.config.ts
- https://docs.djangoproject.com/en/5.1/howto/deployment/checklist/