This project shows how to use Better Auth in React Router v7 project.
Whats implemented:
- Email Password Login | Docs
- Social/OAuth Login with Github | Docs
- Simple UI with shadcn ui and Tailwind CSS
- Hono Server allows for middleware and lots of backend functionality.
Libraries used:
Install the dependencies:
pnpm install
Start the development server with HMR:
pnpm dev
Your application will be available at http://localhost:5173
.
Create a production build:
pnpm build
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