Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

This is a Django and Next.js monorepo project made using turbo and shadcn for UI

License

Notifications You must be signed in to change notification settings

dakshesh14/dj-next-monorepo

Repository files navigation

Django Next.js Monorepo with turpo

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.

Getting Started

This is a monorepo project, meaning it contains all the required code in single repository. The project is divided into 3 parts:

  1. Frontend: contains all the frontend apps
  2. Backend: contains all the required APIs
  3. Package: contains all the shared code between all the apps

To setup the project you can use docker-compose or manually setup the project.

Docker Compose

Coming soon...

Manual Setup

Prerequisites

Setup

  1. Clone the repository
git clone
  1. Install dependencies
pip install -r requirements/local.txt # requirements/production.txt for production
pnpm install && pnpm prepare
  1. 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
  1. 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
  1. Run the development server
pnpm dev

Future Plans

  • Add docker-compose setup
  • Use turbo to interact with the backend

Contributing

Coming soon...

Acknowledgements

License

MIT

About

This is a Django and Next.js monorepo project made using turbo and shadcn for UI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published