This is a website for the GJK Symposion event.
With ❤️ for the 🌍 written in Rust and C++, ones of the most energy efficient programming languages.
Warning: The current API implementation crashed on a segfault and we weren't able to identify the cause as of now. However, it didn't crash since then, so it should be safe to use, especially if you use the repeat_run.sh
script to launch it, since it will restart it if it crashes.
- Install the Rust programming language toolchain: https://www.rust-lang.org/tools/install
- You will have to add the WASM target with
rustup target add wasm32-unknown-unknown
and you will have to have Rust 1.56+ - Install trunk via
cargo install trunk
or some other way specified on their website: https://trunkrs.dev/#install. You can also download pre-built binaries: https://github.com/thedodd/trunk/releases - Navigate to the client folder
- (Optional) Change the config.json file to use a different API link
- Run
trunk serve
and it will tell you which port it listens on (usually/always on 127.0.0.1:8080) - Use a browser supporting WASM to get to the address shown when serving the site with trunk (Internet Explorer is obviously the best browser out there, but we have to somehow end its monopoly).
- download asio, copy(/move) contents of asio's include folder into
api_server/include/
- run the build script -
api_server/sh_build.sh
- from it's directory (it uses g++) - wait untill it finishes compiling :)
- (Optional) change the config file -
api_server/bin/api_server.cfg
; the certificate chain and private key are not used (because it uses http by default) - run the
api_server/bin/repeat_run.sh
script from it's directory (you can provide log filename as argument)