visualization of consensus algorithmus in distributed systems
Vite, TypeScript, Svelte
Visit on jojahn.github.io/visual-consensus-app
├───algorithms
│ ├───paxos
│ └───pow # Proof-of-Work
├───lib # UI Components
├───drawing # Canvas2D Drawing
├───utils # Hashing, etc.
├───simulation # Simulation control and multithreading
├───docs # the built website for github pages
└───public # static website assets
- Download release from https://github.com/jojahn/visual-consensus-app/releases
- Unzip downloaded folder
- Serve assets (e.g. python http server)
python -m http.server
- Install NodeJS (https://nodejs.org/en/)
- Install dependencies
npm install
- Start Development Server
npm run start
- Visit http://localhost:3000
- Develop (How to add new algorithms!)
- Build the application
The build files are located in
npm run build
./docs
- Preview the build
npm run preview
npm run test
Tests are written with Jest