Skip to content

satyajitg2/go-nats-angular

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-nats-angular

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.

1.Start nats server

$nats-server -c go-nats-angular/nats-server.conf

  1. Build and start angular app

$cd natsws-leaflet-ng

$git checkout leaflet_features

$ng serve

  1. Open Web App

localhost:4200

  1. Publish streaming data using nats CLI

$nats -s ws://localhost:8080 pub 'hello.a380' {{.Count}} --count 100000

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

About

leaftlet and nats jetstream

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published