https://github.com/onlook-dev/onlook-t3-template
T3 stack template for Onlook projects with TypeScript, Next.js, tRPC, Tailwind CSS, and Drizzle ORM
https://github.com/onlook-dev/onlook-t3-template
Last synced: 23 days ago
JSON representation
T3 stack template for Onlook projects with TypeScript, Next.js, tRPC, Tailwind CSS, and Drizzle ORM
- Host: GitHub
- URL: https://github.com/onlook-dev/onlook-t3-template
- Owner: onlook-dev
- Created: 2025-10-02T05:32:15.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-10-02T05:38:49.000Z (10 months ago)
- Last Synced: 2026-07-17T22:36:44.488Z (23 days ago)
- Language: TypeScript
- Homepage: https://onlook.com
- Size: 44.9 KB
- Stars: 2
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Onlook T3 Template
A T3 stack template for Onlook projects with TypeScript, Next.js, tRPC, Tailwind CSS, and Drizzle ORM.
## Stack
- **Framework:** [Next.js](https://nextjs.org) with App Router
- **Language:** [TypeScript](https://typescriptlang.org)
- **Database:** [SQLite](https://sqlite.org) with [Drizzle ORM](https://orm.drizzle.team)
- **API:** [tRPC](https://trpc.io)
- **Styling:** [Tailwind CSS](https://tailwindcss.com)
- **Package Manager:** [Bun](https://bun.sh)
## Getting Started
1. Install dependencies:
```bash
bun install
```
2. Set up the database:
```bash
bun run db:push
```
3. Start the development server:
```bash
bun run dev
```
## Scripts
- `bun run dev` - Start development server with Turbopack
- `bun run build` - Build for production
- `bun run start` - Start production server
- `bun run preview` - Build and preview production build
- `bun run typecheck` - Run TypeScript type checking
- `bun run lint` - Run ESLint
- `bun run format` - Format code with ESLint
- `bun run db:push` - Push schema changes to database
- `bun run db:generate` - Generate database migrations
- `bun run db:migrate` - Run database migrations
- `bun run db:studio` - Open Drizzle Studio
## Environment Variables
Copy `.env.example` to `.env` and fill in the required values:
```bash
cp .env.example .env
```
## Learn More
To learn more about the [T3 Stack](https://create.t3.gg/), take a look at the following resources:
- [Documentation](https://create.t3.gg/)
- [Learn the T3 Stack](https://create.t3.gg/en/faq#what-learning-resources-are-currently-available)
## License
Apache-2.0