https://github.com/johanguse/tanstack-starter-with-better-auth
TanStack starter with Tailwind, Better-Auth, i18n and dark mode
https://github.com/johanguse/tanstack-starter-with-better-auth
betterauth i18next tanstack
Last synced: about 1 month ago
JSON representation
TanStack starter with Tailwind, Better-Auth, i18n and dark mode
- Host: GitHub
- URL: https://github.com/johanguse/tanstack-starter-with-better-auth
- Owner: johanguse
- License: mit
- Created: 2024-11-03T23:56:06.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-06T16:21:59.000Z (over 1 year ago)
- Last Synced: 2025-03-21T03:32:08.714Z (about 1 year ago)
- Topics: betterauth, i18next, tanstack
- Language: TypeScript
- Homepage:
- Size: 271 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 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'
```
4. Install dependencies with `pnpm install`
5. Generate the Prisma client with `pnpm db:generate`
6. Run the database migrations with `pnpm db:push`
7. Start the development server with `pnpm dev`
Open [http://localhost:3000](http://localhost:3000) to see the application.
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE.md) file for details.