Skip to content

gengjiawen/sass-template

Repository files navigation

my-better-t-app

This project was created with Better-T-Stack, a modern TypeScript stack that combines Next.js, Self, TRPC, and more.

Features

  • TypeScript - For type safety and improved developer experience
  • Next.js - Full-stack React framework
  • TailwindCSS - Utility-first CSS for rapid UI development
  • shadcn/ui - Reusable UI components
  • tRPC - End-to-end type-safe APIs
  • Prisma - TypeScript-first ORM
  • SQLite/Turso - Database engine
  • Authentication - Better-Auth
  • Oxlint - Oxlint + Oxfmt (linting & formatting)
  • Fumadocs - Beautiful documentation system with MDX support
  • Todos Feature - Full-stack todo management with create, toggle, and delete operations (kidding, just a CRUD demo)

Getting Started

First, install the dependencies:

pnpm install

Database Setup

This project uses SQLite with Prisma.

  1. Start the local SQLite database (optional):
pnpm run db:local
  1. Update your root .env file (project root) with the appropriate connection details if needed.
    apps/web/.env is also supported as a fallback.

  2. Run the initial migration:

pnpm run db:migrate

Then, run the development server:

pnpm run dev

Open http://localhost:3000 in your browser to see the fullstack application.

Git Hooks and Formatting

  • Format and lint fix: pnpm run check

Project Structure

my-better-t-app/
├── apps/
│   └── web/         # Fullstack application (Next.js)
├── packages/
│   ├── api/         # API layer / business logic
│   ├── auth/        # Authentication configuration & logic
│   └── db/          # Database schema & queries

Available Scripts

  • pnpm run dev: Start all applications in development mode
  • pnpm run build: Build all applications
  • pnpm run check-types: Check TypeScript types across all apps
  • pnpm run db:push: Push schema changes to database (dev convenience)
  • pnpm run db:studio: Open database studio UI
  • pnpm run db:local: Start the local SQLite database
  • pnpm run db:migrate:deploy: Apply committed migrations (production)
  • pnpm run check: Run Oxlint and Oxfmt

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages