Skip to content

minimal TanStack Start template with Drizzle ORM, Tailwind CSS, Better Auth - Based on https://github.com/dotnize/tanstarter

Notifications You must be signed in to change notification settings

AlexGaudon/tanstarter-better-auth

 
 

Repository files navigation

A minimal starter template for 🏝️ TanStack Start.

Auth providers:

  • Discord

Getting Started

  1. Use this template or clone this repository.

  2. Install dependencies:

    pnpm install # npm install
  3. Create a .env file based on .env.example.

  4. Generate the better-auth schema with the better-auth cli

    pnpm db:auth:generate

    This will generate the auth-schema.ts file and put it in the appropriate location.

  5. Push the schema to your database with drizzle-kit:

    pnpm db push # npm run db push

    https://orm.drizzle.team/docs/migrations

  6. Run the development server:

    pnpm dev # npm run dev

    The development server should be now running at http://localhost:3000.

Building for production

  1. Configure app.config.ts for your preferred deployment target. Read the hosting docs for more information.

  2. Build the application:

    pnpm build # npm run build
  3. If building for Node, you start the application via:

    pnpm start # npm start

About

minimal TanStack Start template with Drizzle ORM, Tailwind CSS, Better Auth - Based on https://github.com/dotnize/tanstarter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 85.7%
  • CSS 8.5%
  • JavaScript 5.8%