- For initial problem, checkout
problembranch - For nats solution, checkout
solution-nats-wsbranch - For final solution, checkout
solution-nats-ws-part2branch
# on terminal
# start web ui
cd web
npm i && npm run serve
# open another terminal
# start nats-server
# make sure it is installed
nats-server -c nats.conf
# open another terminal
# start api server
make start-apiOpen two tabs on http://localhost:8080
# on terminal
# start web ui
cd web
npm i && npm run serve
# open another terminal
# start ws server
go run main.go --addr :4000 --skipWs
# open another terminal
# start api server
go run main.goOpen two tabs on http://localhost:8080
# on terminal
# start web ui
cd web
npm i && npm run serve
# open another terminal
# start nats-server
# make sure it is installed
nats-server
# open another terminal
# start api server
make start-api
# open another terminal
# start ws server
make start-wsOpen two tabs on http://localhost:8080