Home

Awesome

demoinfocs-wasm example

This repo demonstrates how demoinfocs-golang can be used from JavaScript with WebAssembly (WASM).

Interesting files

Prerequisites

To run the example you need docker, docker-compose and make.

Running the example

  1. Execute make run<br> This builds and starts an NGINX docker container with a webapp that can parse player stats from a CS:GO demo.

  2. Go to http://localhost:8080 to see the demo app.

Demo app screenshot

Running tests for development

To run tests the test-demo default.dem needs to be downloaded using Git LFS first. This can be done with git lfs pull -I '*'.

After this the you can run make for a full build including unit and end-to-end tests.