A Whiteboard application build on top of NATS Jetstream and Nats KV.
Table of Contents
Instead of the usual websocket based backends, this project aims to leverage the existing feature sets make available by NATS (Message broker) which can be compared to KAFKA or Rabbit MQ which also supports persistance, message ordering and Key value storage including object storage.
To get a local copy up and running follow these simple steps.
- npm or bun or yarn
- NATS setup (defaults to a hosted demo instance, change if required)
- "whiteboard.nats.*" streaming subject should be setup.
-
Install NPM packages
npm install
or
bun install
-
Run the server
npm run dev
or
bun run dev
Enter a roomname to initiate the a whiteboard session or enter an exisiting whiteboard name to join the session.
Click on sync to begin syncing with NATS