Install rustup.
Run lib-install.sh. It will set up all the nessesary libraries.
Probably no additional installation needed, otherwise read the rust compiler output.
Run cargo run for testing.
Run cargo run --release for production.
To run on a new thread - nohup cargo run --release &.
To kill the thread - kill -9 [procid].
To check [procid] use ps -A or pidof [procname].
Check settings/api.json for the API keys and tokens.