This project is a demo poc for data streaming using nats jetstream with a golang microservice to an angular web app. Checkout branch "leaflet_features" and follow steps below.
$nats-server -c go-nats-angular/nats-server.conf
- Build and start angular app
$cd natsws-leaflet-ng
$git checkout leaflet_features
$ng serve
- Open Web App
localhost:4200
- Publish streaming data using nats CLI
$nats -s ws://localhost:8080 pub 'hello.a380' {{.Count}} --count 100000
- Start Go streaming app
$cd nats_micro/micro $go run .
$nats pub adsb.anything {{.Count}} --count 1000000 --Publish on any nats subject eg. adsb.F1, adsb.anything, its re-routed to hello.aircraft