Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vfshera/better-auth-rr7
Better Auth with React Router 7
https://github.com/vfshera/better-auth-rr7
Last synced: 5 days ago
JSON representation
Better Auth with React Router 7
- Host: GitHub
- URL: https://github.com/vfshera/better-auth-rr7
- Owner: vfshera
- Created: 2024-12-15T23:22:24.000Z (24 days ago)
- Default Branch: main
- Last Pushed: 2024-12-15T23:27:48.000Z (24 days ago)
- Last Synced: 2024-12-16T00:24:08.898Z (24 days ago)
- Language: TypeScript
- Size: 79.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# React Router + Better Auth
This project shows how to use [Better Auth](https://www.better-auth.com/) in [React Router v7](https://reactrouter.com/) project.
Whats implemented:
- Email Password Login | [Docs](https://www.better-auth.com/docs/authentication/email-password)
- Social/OAuth Login with Github | [Docs](https://www.better-auth.com/docs/authentication/github)
- Simple UI with [shadcn ui](https://ui.shadcn.com/) and [Tailwind CSS](https://tailwindcss.com/)Libraries used:
- [Drizzle ORM](https://orm.drizzle.team/)
- [Sonner Toasts](https://sonner.emilkowal.ski/)
- [React Hook Form](https://react-hook-form.com/)
- [Zod](https://zod.dev/)
- [Remix Flat Routes](https://github.com/kiliman/remix-flat-routes)## Getting Started
### Installation
Install the dependencies:
```bash
pnpm install
```### Development
Start the development server with HMR:
```bash
pnpm dev
```Your application will be available at `http://localhost:5173`.
## Building for Production
Create a production build:
```bash
pnpm build
```## Deployment
If you're familiar with deploying Node applications, the built-in app server is production-ready.
Make sure to deploy the output of `npm run build`
```
├── package.json
├── package-lock.json (or pnpm-lock.yaml, or bun.lockb)
├── build/
│ ├── client/ # Static assets
│ └── server/ # Server-side code
```
License [MIT](./LICENSE)