This is a basic Reddit clone built using the T3 stack.
- Install dependencies:
pnpm install
- Copy the
.env.example
file:
cp .env.example .env
Then edit .env
, following the instructions in the file.
- Deploy the DB schema:
pnpm run db:push
- Run the dev server to view the app:
pnpm run dev
Lint the codebase with ESLint:
pnpm lint
pnpm lint:fix # Automatically fix errors
Format the codebase with Prettier:
pnpm prettier
pnpm prettier:fix # Automatically fix errors