mirror of
https://github.com/oven-sh/bun
synced 2026-02-11 03:18:53 +00:00
534 B
534 B
Elysia is a Bun-first web framework that takes full advantage of Bun's HTTP, file system, and hot reloading APIs.
import { Elysia } from 'elysia'
const app = new Elysia()
.get('/', () => 'Hello Elysia')
.listen(8080)
console.log(`🦊 Elysia is running at on port ${app.server.port}...`)
Get started with bun create.
$ bun create elysia ./myapp
$ cd myapp
$ bun run dev
Refer to the Elysia documentation for more information.