This is a T3 Stack project bootstrapped with create-t3-app
.
We try to keep this project as simple as possible, so you can start with just the scaffolding we set up for you, and add additional things later when they become necessary.
If you are not familiar with the different technologies used in this project, please refer to the respective docs. If you still are in the wind, please join our Discord and ask for help.
To learn more about the T3 Stack, take a look at the following resources:
- Documentation
- Learn the T3 Stack — Check out these awesome tutorials
You can check out the create-t3-app GitHub repository — your feedback and contributions are welcome!
Follow our deployment guides for Vercel, Netlify and Docker for more information.
- Run
pnpm create t3-app@latest
- Run
pnpm install
- Run
pnpm run dev
Env Variables:
- Add the following to .env:
- Update env.js
- Add to vercel
Supabase:
- Create an account at supabase.com
- Create a new project
- Create a new database
- Add the following to .env: DATABASE_URL="postgresql://postgres.kccqqmtjipymwppeerep:[YOUR-PASSWORD]@aws-0-eu-central-1.pooler.supabase.com:6543/postgres?pgbouncer=true&connection_limit=1" DIRECT_URL="postgresql://postgres.kccqqmtjipymwppeerep:[YOUR-PASSWORD]@aws-0-eu-central-1.pooler.supabase.com:5432/postgres?pgbouncer=true&connection_limit=1"
- Add the following to prisma/schema.prisma: directUrl = env("DIRECT_URL")
- npx prisma migrate dev --name dev
Google Sign In:
- Create project and create api key for OAUTH: https://console.cloud.google.com/apis/credentials?referrer=search&authuser=1&project=t3-app-438616
- Add the following to .env: GOOGLE_CLIENT_ID="" GOOGLE_CLIENT_SECRET=""
- Edit auth.ts to add GoogleProvider copy discord provider and change the id and secret
Github Setup:
- Use IDE vs code to auto init and push to github
Vercel:
- Create an account at vercel.com
- Link your project to your github repository
- Add the following environment variables: DATABASE_URL="" SHADOW_DATABASE_URL="" NEXTAUTH_SECRET="" GOOGLE_CLIENT_ID="" GOOGLE_CLIENT_SECRET=""