diff options
author | 2023-03-21 05:32:20 +0100 | |
---|---|---|
committer | 2023-03-20 21:32:20 -0700 | |
commit | 15f23d70d6d6c979370526eb12c2cc9b7df11565 (patch) | |
tree | cd818a4af0be42e5ee947bb4f5c875cb979d3f8d | |
parent | 42eff1d917071738c0f6f7bfc0cf9f03c55b0b8c (diff) | |
download | bun-15f23d70d6d6c979370526eb12c2cc9b7df11565.tar.gz bun-15f23d70d6d6c979370526eb12c2cc9b7df11565.tar.zst bun-15f23d70d6d6c979370526eb12c2cc9b7df11565.zip |
docs: Buchta Docs Page (#2378)
* Idea: Buchta Docs Page
* Tweaks
---------
Co-authored-by: Colin McDonnell <colinmcd94@gmail.com>
-rw-r--r-- | docs/ecosystem/buchta.md | 36 | ||||
-rw-r--r-- | docs/nav.ts | 3 |
2 files changed, 39 insertions, 0 deletions
diff --git a/docs/ecosystem/buchta.md b/docs/ecosystem/buchta.md new file mode 100644 index 000000000..d0e8b92d8 --- /dev/null +++ b/docs/ecosystem/buchta.md @@ -0,0 +1,36 @@ +[Buchta](https://buchtajs.com) is a fullstack framework designed to take full advantage of Bun's strengths. It currently supports Preact and Svelte. + +To get started: + +```bash +$ bunx buchta init myapp +Project templates: +- svelte +- default +- preact +Name of template: preact +Do you want TSX? y +Do you want SSR? y +Enable livereload? y +Buchta Preact project was setup successfully! +$ cd myapp +$ bun install +$ bunx buchta serve +``` + +To implement a simple HTTP server with Buchta: + +```ts#server.ts +import { Buchta, type BuchtaRequest, type BuchtaResponse } from "buchta"; + +const app = new Buchta(); + +app.get("/api/hello/", (req: BuchtaRequest, res: BuchtaResponse) => { + res.send("Hello, World!"); +}); + +app.run(); +``` + + +For more information, refer to Buchta's [documentation](https://buchtajs.com/docs/).
\ No newline at end of file diff --git a/docs/nav.ts b/docs/nav.ts index dfc9ee0d2..fc8b45f84 100644 --- a/docs/nav.ts +++ b/docs/nav.ts @@ -108,6 +108,9 @@ export default { page("ecosystem/hono", "Hono", { description: `Hono is an ultra-fast, Bun-friendly web framework designed for edge environments.`, }), + page("ecosystem/buchta", "Buchta", { + description: `Buchta is a Bun-native fullstack framework for Svelte and Preact apps.`, + }), page("ecosystem/express", "Express", { description: `Servers built with Express and other major Node.js HTTP libraries work out of the box.`, }), |