Skip to content

johanguse/tanstack-starter-with-better-auth

Repository files navigation

TanStack starter with Tailwind, Better-Auth, i18n and dark mode

This is a small starter for those wanting to jump-start their project with the new TanStack Start.

Todo

[ ] Fix the Hydration error with i18next-browser-languagedetector

Features

  • Tailwind CSS
  • Better-Auth
  • i18n (i18next)
  • Dark mode
  • Sonner
  • Shadcn
  • Vinxi
  • Prisma
  • Zod

Getting started

  1. Clone the repository
  2. Create a postgres database (preferably)
  3. Create a new file .env and add the following:
DATABASE_URL='postgresql://postgres:postgres@localhost:5432/postgres'
BETTER_AUTH_SECRET='my_super_secret_here'
BETTER_AUTH_URL='http://localhost:3000'
  1. Install dependencies with pnpm install
  2. Generate the Prisma client with pnpm db:generate
  3. Run the database migrations with pnpm db:push
  4. Start the development server with pnpm dev

Open http://localhost:3000 to see the application.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

TanStack starter with Tailwind, Better-Auth, i18n and dark mode

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published