https://github.com/doseofted/prim-rpc-starter
Starter project for Prim+RPC used in blog post
https://github.com/doseofted/prim-rpc-starter
demo rpc type-safe typescript
Last synced: 12 months ago
JSON representation
Starter project for Prim+RPC used in blog post
- Host: GitHub
- URL: https://github.com/doseofted/prim-rpc-starter
- Owner: doseofted
- License: mit
- Created: 2023-10-20T01:07:27.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-23T18:48:28.000Z (over 2 years ago)
- Last Synced: 2025-02-13T20:18:19.234Z (about 1 year ago)
- Topics: demo, rpc, type-safe, typescript
- Language: TypeScript
- Homepage: https://blog.doseofted.me/javascript-as-a-query-language
- Size: 85.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Prim+RPC Starter Project
📖 This is the completed project from
[from the related blog post](https://blog.doseofted.me/transparent-rpc-for-javascript).
[](https://stackblitz.com/github/doseofted/prim-rpc-starter/tree/main)
> Looking for the starter project? It's
> [available here](https://github.com/doseofted/prim-rpc-starter/tree/follow-along)!
In this project, we have a web server in Node and a website built with Vite:
- [`server/module.ts`](./server/index.ts) is where your functions are created
- [`server/index.ts`](./server/index.ts) is the Prim+RPC server, using the Fetch API
- [`client/prim.ts`](./client/prim.ts) is the Prim+RPC client, using the Fetch API
- [`client/index.ts`](./client/index.ts) is where your functions are called
You can start this project in development mode by running:
```zsh
npm install
npm run dev
```
[Read the Blog Article](https://blog.doseofted.me/transparent-rpc-for-javascript)