This will be a C++ restfull web api capable of running Factorio in a sub-process. This should be able to receive commands via web sockets to do anything from manage mods, to starting/stoping server, to managing admins, etc.
- A modern C++ compiler.
- Python 3.6 or newer.
Python virtualenv is highly recommended to localize packages per-project. Installation is simple:
python -m pip install virtualenv
Then in your project directory run:
virtualenv env
Run the 'activate' script matching your OS/terminal to activate the environment under 'env/Scripts' and run:
python -m pip install -r requirements.txt
Add the conan repository:
conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan
You can run either of the build scripts provided, but often you need custom arguments. We use conan so you might benefit from exploring their documentation.
mkdir build && cd build
conan install ..\src\ --build missing -s build_type=Debug
cmake ../src/
cmake --build .