Made by Tapan Rai
This is a monorepo repository with:
- ⚡️ Next.js 13 with App Router
- 🪺 Nest.js 10
- ⚛️ React 18
- ▲ Prisma with Postgres
- 🛡️ NextAuth.js with Google
- 💨 Tailwind CSS 3
- ⎙ @shadcn/ui components
- 📏 ESLint
- 💖 Prettier
- Install dependencies
yarn
- Copy
.env.example
to.env.local
and update the variables.
cp ./apps/web/.env.example ./apps/web/.env.local
- Run the project locally
yarn dev
This is an exhaustive list of all the environment variables in the project
- App:
NEXT_PUBLIC_APP_URL
- The is the URL of your application, make sure to appendhttps://
to your domain. In local dev mode, you can set this variable inenv.local / env.development
and give it this valuehttp://localhost:3000
. - Auth:
NEXTAUTH_URL
- When deploying to vercel you do not have to set this value, but when you develop you can set this ashttp://localhost:3000
. Find more details here. - Auth:
NEXTAUTH_SECRET
- Used to encrypt JWT and you can easily generate a secret usingopenssl rand -base64 32
. Find more details here. - Google OAuth:
GOOGLE_CLIENT_ID
andGOOGLE_CLIENT_SECRET
- Both Client ID and Client Secret of Google App can be generated at your Google Cloud Console page. You can provide yourNEXT_PUBLIC_APP_URL
as the Homepage URL and append/api/auth/callback/google
for the callback URL - Postgres:
POSTGRES_PRISMA_URL
&POSTGRES_URL_NON_POOLING
- You will only need these two variables after you have setup your database as we are using Prisma.