aboutsummaryrefslogtreecommitdiff
path: root/docs/guides/ecosystem/solidstart.md
blob: b6062c903340c927a38cca764c639b40549f6431 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
---
name: Build an app with SolidStart and Bun
---

{% callout %}
SolidStart currently relies on Node.js APIs that Bun does not yet implement. The guide below uses Bun to initialize a project and install dependencies, but it uses Node.js to run the dev server.
{% /callout %}

---

Initialize a SolidStart app with `create-solid`.

```sh
$ bunx create-solid my-app
create-solid version 0.2.31

Welcome to the SolidStart setup wizard!

There are definitely bugs and some feature might not work yet.
If you encounter an issue, have a look at
https://github.com/solidjs/solid-start/issues and open a new one,
if it is not already tracked.

✔ Which template do you want to use? › todomvc
✔ Server Side Rendering? … yes
✔ Use TypeScript? … yes
cloned solidjs/solid-start#main to /path/to/my-app/.solid-start
✔ Copied project files
```

---

As instructed by the `create-solid` CLI, lets install our dependencies.

```sh
$ cd my-app
$ bun install
```

---

Then run the development server.

```sh
$ bun run dev
# or, equivalently
$ bunx solid-start dev
```

---

Open [localhost:3000](http://localhost:3000). Any changes you make to `src/routes/index.tsx` will be hot-reloaded automatically.

{% image src="https://github.com/oven-sh/bun/assets/3084745/1e8043c4-49d1-498c-9add-c1eaab6c7167" alt="SolidStart demo app" /%}

---

Refer to the [SolidStart website](start.solidjs.com/getting-started/what-is-solidstart) for complete framework documentation.
r Buffer.toString("ascii")Gravatar Jarred Sumner 1-8/+35 2023-02-04Bump querystring-es3 (#1988)Gravatar Gaurish Sethia 2-9/+36 2023-02-04Add `isDeepStructEqual` to `node:util`Gravatar Jarred Sumner 1-2/+6 2023-02-03Fixes #1978Gravatar Jarred Sumner 1-3/+7 2023-02-03Implement os.cpus() for Linux (#1977)Gravatar Justin Whear 1-2/+138 2023-02-03Support passing `Date` to `Bun.sleep`Gravatar Jarred Sumner 3-3/+27 2023-02-03Add test for propagating exceptionGravatar Jarred Sumner 3-5/+28 2023-02-03Add missing crypto exportGravatar Jarred Sumner 2-16/+22 2023-02-03Introduce `await Bun.sleep(ms)`Gravatar Jarred Sumner 5-15/+110 2023-02-03Fix types for `Array.fromAsync`Gravatar Ashcon Partovi 1-1/+1 2023-02-03Fix/Update Typescript types (#1972)Gravatar Gaurish Sethia 2-168/+38 2023-02-03fix require("perf_hooks")Gravatar Jarred Sumner 1-0/+1 2023-02-03allow other ArrayBufferView in Buffer functionsGravatar Jarred Sumner 1-6/+6 2023-02-03Make it less flakyGravatar Jarred Sumner 1-1/+1 2023-02-03Run tests on pull requestsGravatar Ashcon Partovi 1-0/+7 2023-02-03Run tests on pushGravatar Ashcon Partovi 1-0/+7 2023-02-03anotherGravatar Dylan Conway 1-1/+1 2023-02-03integers overflowingGravatar Dylan Conway 1-1/+1 2023-02-03Attempt to debug annotations 2Gravatar Ashcon Partovi 1-4/+1 2023-02-03Attempt to debug annotationsGravatar Ashcon Partovi 1-0/+7 2023-02-03Fix console output in bun wiptestGravatar Ashcon Partovi 1-4/+3 2023-02-03Use GitHub action SDKGravatar Ashcon Partovi 4-10/+16