- Clone the repo
- Create an environment file
You have to create an Auth0 "SPA" application for the Auth0 Config
Make sure set callback url in Auth0 settings
https://your-domain.com/api/auth/callback
POSTGRES_USER=YOUR_CUSTOM_USER
POSTGRES_PASSWORD=YOUR_CUSTOM_PASSWORD
# This was inserted by `prisma init`:
# Environment variables declared in this file are automatically made available to Prisma.
# See the documentation for more detail: https://pris.ly/d/prisma-schema#accessing-environment-variables-from-the-schema
# Prisma supports the native connection string format for PostgreSQL, MySQL, SQLite, SQL Server, MongoDB and CockroachDB (Preview).
# See the documentation for all the connection string options: https://pris.ly/d/connection-strings
DATABASE_URL="postgresql://YOUR_CUSTOM_USER:YOUR_CUSTOM_PASSWORD@db:5432/YOUR_CUSTOM_USER?schema=public"
AUTH0_SECRET=
AUTH0_BASE_URL=
AUTH0_ISSUER_BASE_URL=
AUTH0_CLIENT_ID=
AUTH0_CLIENT_SECRET=
- Start the production Docker compose with
docker compose -f docker-compose.prod.yml up -d
- After everything is built, enter in bash mode inside the prod container
docker compose exec prod bash
- Run migrations
npx prisma migrate deploy
- Clone the repo
- Create the environment file with the environment file from the production instructions
- Start the development Docker compose with
docker compose up -d
- Enter bash mode
docker compose exec node bash
- Install dependencies
npm i
- Run migrations
npx prisma migrate dev
- Start the Next.js server
npm run dev
https://www.toptal.com/developers/hastebin/raw/futufojege
https://youtu.be/HhMATRF0cr0