Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 11 days 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 (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-23T18:48:28.000Z (about 1 year ago)
- Last Synced: 2024-04-23T20:27:36.835Z (7 months 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).[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz_small.svg)](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 calledYou 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)