Skip to content

Commit

Permalink
add example readme
Browse files Browse the repository at this point in the history
  • Loading branch information
cah4a committed Jul 1, 2024
1 parent 6773326 commit 613a70b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
17 changes: 13 additions & 4 deletions example/README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,24 @@
# trpc-bun-adapter-example

To install dependencies:
This is a minimal example of how to use the `trpc-bun-adapter` package.

## Run example

Install dependencies:

```bash
bun install
```

To run:
Bundle client code:

```bash
bun bundle
```

Start the server

```bash
bun run index.ts
bun start
```

This project was created using `bun init` in bun v1.1.10. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"module": "server.ts",
"type": "module",
"scripts": {
"start": "bun server/index.ts --watch",
"start": "bun --watch server/index.ts",
"bundle": "bun build --outdir dist client/app.tsx"
},
"devDependencies": {
Expand Down

0 comments on commit 613a70b

Please sign in to comment.