This is a Django and Next.js monorepo project made using turbo.
| Note: I recommend using this cookiecutter instead: https://github.com/dakshesh14/django-next-cookiecutter for more customization.
This is a monorepo project, meaning it contains all the required code in single repository. The project is divided into 3 parts:
- Frontend: contains all the frontend apps
- Backend: contains all the required APIs
- Package: contains all the shared code between all the apps
To setup the project you can use docker-compose or manually setup the project.
Coming soon...
- Clone the repository
git clone
- Install dependencies
pip install -r requirements/local.txt # requirements/production.txt for production
pnpm install && pnpm prepare
- Create a
.env
file in the root of the project and add the following environment variables
cp /apps/web/.env.example /apps/web/.env.local
- Run the migrations
Assuming you have PostgreSQL running on your machine, run the following command to create the database
createdb dj-next-monorepo
python manage.py migrate
- Run the development server
pnpm dev
- Add docker-compose setup
- Use turbo to interact with the backend
Coming soon...