https://github.com/lovelesscodes/elysia-better-auth
🦊 Elysia x Better Auth: Seamlessly integrate powerful authentication with Elysia, Better-Auth and Drizzle ORM. Secure, scalable, and built for modern web applications. 🛡️✨
https://github.com/lovelesscodes/elysia-better-auth
authentication back-end better-auth elysiajs
Last synced: 8 months ago
JSON representation
🦊 Elysia x Better Auth: Seamlessly integrate powerful authentication with Elysia, Better-Auth and Drizzle ORM. Secure, scalable, and built for modern web applications. 🛡️✨
- Host: GitHub
- URL: https://github.com/lovelesscodes/elysia-better-auth
- Owner: LovelessCodes
- Created: 2024-11-08T10:04:22.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-11-08T10:42:34.000Z (over 1 year ago)
- Last Synced: 2025-04-04T02:34:24.425Z (about 1 year ago)
- Topics: authentication, back-end, better-auth, elysiajs
- Language: TypeScript
- Homepage: https://elysia.betterjs.dev
- Size: 48.8 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Elysia x Better-Auth
## Overview
This project is a template for building modern web applications using the Elysia framework with Bun runtime, integrated with Drizzle ORM for database management and Better-Auth for enhanced authentication.
## Using



## Prerequisites
Before you begin, ensure you have the following installed:
- [Bun](https://bun.sh/) - A fast JavaScript runtime
- A compatible database supported by Drizzle
## Getting Started
To get started, clone this repository:
```bash
git clone https://github.com/LovelessCodes/elysia-better-auth.git
```
After setting up, navigate into the project directory:
```bash
cd elysia-better-auth
```
## Configuration
1. **Database Setup**: Configure your database connection in the `.env` file at the project root. Drizzle ORM supports multiple databases, so choose the configuration that fits your setup.
2. **Better-Auth Setup**: Configure your Better-Auth credentials in the `.env` file at the project root.
## Development
To start the development server, run:
```bash
bun run dev
```
Once the server is running, open your browser and visit [http://localhost:3131/](http://localhost:3131/) to view your application.
## Build
To build the application for production, use:
```bash
bun run build
```
This will generate an executable `server` file.
### Running the Build
```bash
./server
```
## Deployment
Ensure your environment variables are set for production and deploy using your preferred service.
## Additional Resources
- [Drizzle ORM Documentation](https://orm.drizzle.team/)
- [Elysia Framework Guide](https://elysiajs.com/)
- [Better-Auth Documentation](https://better-auth.com/docs)
Feel free to explore the codebase and customize it to suit your needs!