Starter with prisma / next auth / and two next app
Run the following command:
pnpm install turbo --global
This Turborepo includes the following packages/apps:
web
: another Next.js app with app directoryadmin
: another Next.js app with app directory with gate wrapper to check sessionui
: a stub React component library shared by bothweb
andadmin
applicationseslint-config-custom
:eslint
configurations (includeseslint-config-next
andeslint-config-prettier
)tsconfig
:tsconfig.json
s used throughout the monorepoauth-config
: next-auth global config for all apps to inportprisma-database
: global prisma for all apps to import (one db for all)
Each package/app is 100% TypeScript.
This Turborepo has some additional tools already setup for you:
- TypeScript for static type checking
- ESLint for code linting
- Prettier for code formatting
To build all apps and packages, run the following command:
cd my-turborepo
pnpm build
To develop all apps and packages, run the following command:
cd my-turborepo
pnpm dev
(mongodb connection url)
DATABASE_URL=
NODE_ENV="development"
EMAIL_SERVER_USER=
EMAIL_SERVER_PASSWORD=
EMAIL_SERVER_HOST=
EMAIL_SERVER_PORT=
EMAIL_FROM=
Learn more about the power of Turborepo: