This guide walks you through setting up and running a fullstack web application built with the T3 Stack — a modern framework combining TypeScript, Next.js, Prisma, Tailwind, tRPC, and NextAuth.
Next.js requires Node.js (v18 or higher).
Steps:
- Go to nodejs.org/en/download
- Download the LTS version for your OS (Windows/macOS/Linux)
- Install Node.js using default options
- Verify installation:
You should see version numbers printed.
node -v npm -v
We recommend Visual Studio Code (VS Code).
Steps:
- Download from code.visualstudio.com
- Install it
- (Optional) Install helpful extensions:
- ES7+ React/Redux/React-Native snippets
- Prettier – Code formatter
Steps:
- Go to git-scm.com/install
- Download and install Git
- Verify installation:
git --version
We’ll use the official Create T3 App tool to scaffold our project.
npx create-t3-app@latestWhen prompted, choose:
| Option | Choice |
|---|---|
| Project Name | web-workshop (or your own) |
| Language | TypeScript ✅ |
| Styling | Tailwind CSS ✅ |
| tRPC | Yes ✅ |
| Auth Provider | NextAuth.js ✅ |
| ORM | Prisma ✅ |
| App Router | Yes ✅ |
| Database | SQLite (LibSQL) ✅ |
| Linting/Formatting | ESLint + Prettier ✅ |
| Initialize Git | Yes ✅ |
| Install Dependencies | Yes ✅ |
| Import Alias | src ✅ |
- Go to the Discord Developer Portal
- Click New Application
- Navigate to OAuth2 → General
- Copy the Client ID → paste into
.env:DISCORD_CLIENT_ID=your_client_id - Under Client Secret, click Reset Secret, then copy it:
DISCORD_CLIENT_SECRET=your_client_secret - Add a redirect URI:
http://localhost:3000/api/auth/callback/discord - Save your changes.
You can use the same app for production, but it’s safer to create separate ones for dev and prod.
Ensure the contents of
npx auth secretIs in
AUTH_SECRET="<secret>"cd web-workshop
npx prisma generate
pnpm db:push
npm run devOpen your browser to http://localhost:3000. You should see your Next.js app running with Tailwind styling.
If you’re new to these tools, check out their documentation:
Join the T3 Discord Community for help.
You can deploy your finished project using:
Once you’ve completed all steps:
- Run
npm run dev - Visit http://localhost:3000
- Test sign-in with Discord
- Confirm database and styling are functional
This setup is intentionally minimal so you can focus on understanding how the stack pieces fit together. You’ll extend this scaffold in the workshop to add features like API endpoints, database operations, and authentication logic.
© 2025 WMU Developer Club — Web Workshop