-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add example package to show usage
- Loading branch information
1 parent
198cf1b
commit e3a64eb
Showing
7 changed files
with
910 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
In seperate terminals: | ||
|
||
Start the server: | ||
|
||
pnpm server:start | ||
|
||
Run the client to make requests: | ||
|
||
pnpm client:start | ||
|
||
Edit the server and client as needed to test different use-cases and restart. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"name": "example", | ||
"version": "1.0.0", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"client:start": "ts-node src/client.ts", | ||
"server:start": "ts-node src/server.ts" | ||
}, | ||
"keywords": [], | ||
"author": "", | ||
"license": "ISC", | ||
"dependencies": { | ||
"@koa/bodyparser": "^5.0.0", | ||
"@trpc/client": "^10.45.2", | ||
"@trpc/server": "^ 10.45.2", | ||
"koa": "^2.13.4", | ||
"koa-bodyparser": "^4.4.1", | ||
"trpc-koa-adapter": "1.2.1", | ||
"zod": "^3.19.1" | ||
}, | ||
"devDependencies": { | ||
"@types/koa": "^2.13.5", | ||
"@types/koa-bodyparser": "^4.3.12", | ||
"ts-node": "^10.9.2" | ||
} | ||
} |
Oops, something went wrong.