Skip to content
This repository has been archived by the owner on Nov 20, 2023. It is now read-only.

Latest commit

 

History

History
68 lines (48 loc) · 1.18 KB

README.md

File metadata and controls

68 lines (48 loc) · 1.18 KB

App made to make ordering food as group easier :tf:

Tech stack:

  • create-t3-app stack, also known as the T3-Stack (react, trpc, tailwind, prisma, nextauth).
  • vitest for testing

Getting started

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

Do you want to run dev server?

npm i
npm run dev

Do you want to run production server?

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

Do you want to run tests?

npm i
npm test