To show that Qworum is an object-oriented system in the classical OOP sense, this project implements a CLI-based simulation of 3 Qworum services (aka Qworum APIs, aka Qworum classes), with these correspondances:
- Qworum class → TypeScript class.
- Qworum class method → TypeScript class method.
- Qworum class property → TypeScript class property.
This simulation is truthful to what happens on the Qworum platform, where:
- each endpoint call or property access happens within the context of a Qworum object.
- there is no concept of a static method or a static property (but any object method can behave as if it were static by not using any object property).
The services
directory contains 3 simulated Qworum services: identity
, pm
, and hcm
.
First install Deno.
Then type this in the terminal:
deno task run
- Implement the
hcm
service. - Color-code each service's output.
∎