Skip to content

quang08/T3-Stack

Repository files navigation

Chirp

Full-stack app built with T3 Stack

Home (Pre-signed in)

preSignin

Clerk Sign in

clerkSigninPage

Home (Signed in)

signedIn

Loading state

  • hydrate the input, only the feed would have a loading state

loading

Input validation

invalidInput

Profile View

profilePage

Post View

postView

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

# Database URL for Prisma
DATABASE_URL="mysql://johndoe:randompassword@localhost:5432/mydb?schema=public"

# Clerk for auth
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=
CLERK_SECRET_KEY=

# Upstash for rate limiting
UPSTASH_REDIS_REST_URL=""
UPSTASH_REDIS_REST_TOKEN=""

Run Locally

Clone the project

  git clone https://github.com/quang08/T3-Stack

Go to the project directory

  cd T3-Stack

Install dependencies

  npm install

Apply migrations to database

  npm migrate-dev

Seed the database

  npm db-seed

Start the server

  npm run dev