- create-t3-app stack, also known as the T3-Stack (react, trpc, tailwind, prisma, nextauth).
- vitest for testing
You need to have a postgres database running to run this on your pc.
Provide its url in a .env.local
file in the root of the project.
DATABASE_URL=Your://Postgres://Url
Then run the following commands:
npm i
npx prisma migrate dev
Also provide a secret for nextauth in the same file.
NEXTAUTH_SECRET=YourSecret
Auth0 is used for authentication, so you need to provide your auth0 credentials in the .env.local
file as well.
AUTH0_CLIENT_ID=YourClientId
AUTH0_CLIENT_SECRET=YourClientSecret
AUTH0_ISSUER=YourDomain
npm i
npm run dev
Add environment variables
npm i
npm run build
npm run start
if deploying to an service, add more env variables
NEXTAUTH_SECRET=yourSecret
VERCEL_URL=yourAppUrl
NEXTAUTH_URL=https://yourAppUrl
npm i
npm test