Skip to content

loek-sn/elysia-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elysia Starter Template

A starter template for building backend applications with Elysia.

Features

  • ⚡ Fast and lightweight Elysia server
  • 🛠️ Ready for customization
  • 🧪 Easy to extend with plugins and middleware

Getting Started

Prerequisites

Installation

pnpm install
# or
npm install

Running the Server

pnpm start
# or
npm start

The server will start on http://localhost:3000.

Project Structure

.
├── src/
│   ├── index.ts
│   ├── db/
│   │   ├── auth.schema.ts
│   │   ├── drizzle.ts
│   │   └── schema.ts
│   ├── lib/
│   │   └── auth.ts
│   ├── plugins/
│   │   └── auth.plugin.ts
│   └── routes/
├── package.json
├── README.md
├── tsconfig.json
├── .env
├── .gitignore
└── bun.lock

Environment Variables

Create a .env file in the project root with the following variables:

BETTER_AUTH_SECRET=
BETTER_AUTH_URL=
DATABASE_URL=

Fill in the values as appropriate for your environment.

Customization

  • Add your routes and logic in src/index.ts.
  • Install Elysia plugins as needed.

Learn More

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published