0c8e827cdafe8b2b11dedee2c6d462b7723394dd
kk
This project was created with Better-T-Stack, a modern TypeScript stack that combines React, TanStack Start, Self, ORPC, and more.
Features
- TypeScript - For type safety and improved developer experience
- TanStack Start - SSR framework with TanStack Router
- TailwindCSS - Utility-first CSS for rapid UI development
- shadcn/ui - Reusable UI components
- oRPC - End-to-end type-safe APIs with OpenAPI integration
- Drizzle - TypeScript-first ORM
- SQLite/Turso - Database engine
- Authentication - Better-Auth
- Turborepo - Optimized monorepo build system
- Biome - Linting and formatting
Getting Started
First, install the dependencies:
bun install
Database Setup
This project uses SQLite with Drizzle ORM.
- Start the local SQLite database (optional):
bun run db:local
-
Update your
.envfile in theapps/webdirectory with the appropriate connection details if needed. -
Apply the schema to your database:
bun run db:push
Then, run the development server:
bun run dev
Open http://localhost:3001 in your browser to see the fullstack application.
Deployment (Cloudflare via Alchemy)
- Dev: cd apps/web && bun run alchemy dev
- Deploy: cd apps/web && bun run deploy
- Destroy: cd apps/web && bun run destroy
For more details, see the guide on Deploying to Cloudflare with Alchemy.
Git Hooks and Formatting
- Format and lint fix:
bun run check
Project Structure
kk/
├── apps/
│ └── web/ # Fullstack application (React + TanStack Start)
├── packages/
│ ├── api/ # API layer / business logic
│ ├── auth/ # Authentication configuration & logic
│ └── db/ # Database schema & queries
Available Scripts
bun run dev: Start all applications in development modebun run build: Build all applicationsbun run check-types: Check TypeScript types across all appsbun run db:push: Push schema changes to databasebun run db:generate: Generate database client/typesbun run db:migrate: Run database migrationsbun run db:studio: Open database studio UIbun run db:local: Start the local SQLite databasebun run check: Run Biome formatting and linting
Description
Languages
TypeScript
99%
CSS
1%