Skip to content

A Qworum system simulation that shows that Qworum is an OOP environment in the classical sense.

License

Notifications You must be signed in to change notification settings

doga/qworum-concepts-in-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A 3-node Qworum simulation

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).

How the code base is organized

The services directory contains 3 simulated Qworum services: identity, pm, and hcm.

Running the project

First install Deno.

Then type this in the terminal:

deno task run

To do

  • Implement the hcm service.
  • Color-code each service's output.

About

A Qworum system simulation that shows that Qworum is an OOP environment in the classical sense.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published