A starter template for building backend applications with Elysia.
- ⚡ Fast and lightweight Elysia server
- 🛠️ Ready for customization
- 🧪 Easy to extend with plugins and middleware
pnpm install
# or
npm install
pnpm start
# or
npm start
The server will start on http://localhost:3000.
.
├── 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
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.
- Add your routes and logic in
src/index.ts
. - Install Elysia plugins as needed.
MIT