This is a T3 Stack project bootstrapped with create-t3-app
.
-
You need these 3 environment variable, see
.env.example
.DATABASE_URL
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY
CLERK_SECRET_KEY
-
Create a PostgreSQL database and get the database URL (this project use Supabase).
-
Create a Clerk account, setup a project, and get the
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY
andCLERK_SECRET_KEY
. -
Create a
.env
file and add all the required variable.
- Fork and clone the repo locally.
- Make sure all the required environment variable is added in
.env
file. - Install dependencies with bun.
- Run
bunx prisma db push
to setup the database. - Run
bun dev
to start the app onlocalhost:3000
- Add Clerk
userId
to middleware. - Add
{ "banned" : true }
to user public metadata. - Update
banned
totrue
for all links by the user.