跳转到内容

此内容尚不支持你的语言。

此内容尚不支持你的语言。

Quick start

Elysia is a TypeScript backend framework optimized for Bun. You can also run it on Node.js or any runtime that supports Web Standard Request.

Install Bun using the command for your operating system.

Terminal window
curl -fsSL https://bun.com/install | bash

Open a new terminal and check the installation:

Terminal window
bun --version

You can create a project using bun create elysia.

The template use latest but we want to use the rc version of Elysia v2 instead.

Terminal window
bun create elysia
cd app
bun add elysia@rc

Start the server:

Terminal window
bun run dev

Open localhost:3000. You should see Hello Elysia.

编辑此页

最近更新:

Type to search the documentation.

    Up arrowDown arrow to navigateEnter to selectEscape to close