Skip to content

🦊 Elysia x Better Auth: Seamlessly integrate powerful authentication with Elysia, Better-Auth and Drizzle ORM. Secure, scalable, and built for modern web applications. πŸ›‘οΈβœ¨

Notifications You must be signed in to change notification settings

LovelessCodes/elysia-better-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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

Elysia Version
Better Auth Version
Drizzle Version

Prerequisites

Before you begin, ensure you have the following installed:

  • Bun - A fast JavaScript runtime
  • A compatible database supported by Drizzle

Getting Started

To get started, clone this repository:

git clone https://github.com/LovelessCodes/elysia-better-auth.git

After setting up, navigate into the project directory:

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:

bun run dev

Once the server is running, open your browser and visit http://localhost:3131/ to view your application.

Build

To build the application for production, use:

bun run build

This will generate an executable server file.

Running the Build

./server

Deployment

Ensure your environment variables are set for production and deploy using your preferred service.

Additional Resources

Feel free to explore the codebase and customize it to suit your needs!

About

🦊 Elysia x Better Auth: Seamlessly integrate powerful authentication with Elysia, Better-Auth and Drizzle ORM. Secure, scalable, and built for modern web applications. πŸ›‘οΈβœ¨

Topics

Resources

Stars

Watchers

Forks