Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alexgalhardo/learning-json-rpc

A personal project I created to learn and improve my skills in JSON-RPC to use in Load & Stress Tests benchmarkings
https://github.com/alexgalhardo/learning-json-rpc

bun json-rpc2 json-server jwt rpc

Last synced: about 2 months ago
JSON representation

A personal project I created to learn and improve my skills in JSON-RPC to use in Load & Stress Tests benchmarkings

Awesome Lists containing this project

README

        


Learning JSON-RPC


## Introduction

- A personal project I created to learn and improve my skills in:
- [https://www.jsonrpc.org/specification](https://www.jsonrpc.org/specification)
- [https://www.npmjs.com/package/json-rpc-2.0](https://www.npmjs.com/package/json-rpc-2.0)

## Development Setup Local

1. Clone repository
```
git clone [email protected]:AlexGalhardo/learning-json-rpc.git
```

2. Install dependencies
```
bun install
```

3. Run setup.sh
```
chmod +x setup.sh && ./setup.sh
```

## [Single-file executable](https://bun.sh/docs/bundler/executables)

- Building Server
```
bun build --compile --minify ./src/server.ts --outfile server
```

- Building Client
```
bun build --compile --minify ./src/client.ts --outfile client
```

- Building all
```
bun run build
```

- Executing binaries
```
./server
```

```
./client
```

## License

[MIT](http://opensource.org/licenses/MIT)

Copyright (c) April 2024-present, [Alex Galhardo](https://github.com/AlexGalhardo)