> ## Documentation Index
> Fetch the complete documentation index at: https://bun.ll1025.cn/llms.txt
> Use this file to discover all available pages before exploring further.

# 使用 SolidStart 和 Bun 构建应用

使用 `create-solid` 初始化一个 SolidStart 应用。传递 `--solidstart` 标志创建 SolidStart 项目，传递 `--ts` 启用 TypeScript 支持。当提示选择模板时，选择 `basic` 以获得最小的入门应用。

```sh terminal icon="terminal" theme={null}
bun create solid my-app --solidstart --ts
```

```txt theme={null}
┌
 Create-Solid v0.6.11
│
◇  项目名称
│  my-app
│
◇  你想使用哪个模板？
│  basic
│
◇  项目已创建 🎉
│
◇  开始使用，运行：─╮
│                    │
│  cd my-app         │
│  bun install       │
│  bun dev           │
│                    │
├────────────────────╯
```

***

安装依赖。

```sh terminal icon="terminal" theme={null}
cd my-app
bun install
```

然后使用 `bun dev` 运行开发服务器。

```sh terminal icon="terminal" theme={null}
bun dev
```

```txt theme={null}
$ vinxi dev
vinxi v0.5.8
vinxi 正在启动开发服务器

  ➜ 本地：    http://localhost:3000/
  ➜ 网络：   使用 --host 暴露
```

打开 [localhost:3000](http://localhost:3000)。你对 `src/routes/index.tsx` 所做的更改会自动热重载。

***

参见 [SolidStart 文档](https://docs.solidjs.com/solid-start) 了解更多。
