Scrappy and mostly dev-ops boilerplate for TypeScript
+ Node
+ Plotly
+ Nakama
disguised as benchmark test.
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.
Spawns clients and custom-authenticates them on nakama server every some time period: can be modified in .env.example
or .env
- both (
Plotly
andnode(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 fornakama.Client
) requires modules support (errors point to generated JS code though)