This is a T3 Stack project bootstrapped with create-t3-app.
This app is a challenge for a basic Reddit clone.
This app works with Planetscale, for database, and Clerk, for authentication. To run this project you basically need the following env vars:
# Planetscale
DATABASE_URL='planetscale database url'
DATABASE_HOST='planetscale database host'
DATABASE_NAME='planetscale database name'
DATABASE_USERNAME='planetscale database username'
DATABASE_PASSWORD='planetscale database password'
# Clerk
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY='clerk publishable key'
CLERK_SECRET_KEY='clerk secret key'
CLERK_WEBHOOK_KEY='clerk webhook key'
Ps.: we make use of Clerk webhook to create a user on our database whenever it is created on Clerk. We store just basic information so we can provide some user informations regarding name, username and account image.
A simple deploy on Vercel or Netlify would do the job, with the required env vars.