https://github.com/vfshera/better-auth-rr7-hono-server
This project shows how to use Better Auth in React Router v7 project.
https://github.com/vfshera/better-auth-rr7-hono-server
better-auth honojs react-router
Last synced: 2 months ago
JSON representation
This project shows how to use Better Auth in React Router v7 project.
- Host: GitHub
- URL: https://github.com/vfshera/better-auth-rr7-hono-server
- Owner: vfshera
- License: mit
- Created: 2024-12-20T21:11:29.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-02-04T20:34:09.000Z (3 months ago)
- Last Synced: 2025-02-04T21:28:24.358Z (3 months ago)
- Topics: better-auth, honojs, react-router
- Language: TypeScript
- Homepage:
- Size: 174 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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/)
- [Hono Server](https://hono.dev/) allows for middleware and lots of backend functionality.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)