Skip to content

Scrappy and mostly dev-ops boilerplate for TypeScript + Node + Plotly + Nakama

License

Notifications You must be signed in to change notification settings

SlausB/nakama_bench

Repository files navigation

Scrappy and mostly dev-ops boilerplate for TypeScript + Node + Plotly + Nakama disguised as benchmark test.

Run

git clone https://github.com/heroiclabs/nakama
cd nakama
docker-compose up -d
cd ..

git clone https://github.com/SlausB/nakama_bench
cd nakama_bench
./run.sh

then visit http://localhost:8050/ for Plotly response times plots updated in realtime.

What it does

Spawns clients and custom-authenticates them on nakama server every some time period: can be modified in .env.example or .env

Niceties

  • both (Plotly and node(bench)) containers running as host user
  • running in development watch mode for automatic restarts on code changes
  • plot data is fed to Plotly through sockets for truly realtime updates instead of timer-originated as Plotly docs suggest
  • using tsc-watch with ESNext instead of cool ts-node-dev, because node-fetch (needed for nakama.Client) requires modules support (errors point to generated JS code though)

About

Scrappy and mostly dev-ops boilerplate for TypeScript + Node + Plotly + Nakama

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published