You can execute the server using Docker.
Warning
The commands include sudo
directive, for Windows users may change.
sudo docker build -t cpp-server .
Bind mount allows the container write the files into hosts filesystem. You need Linux platform and the project builded.
sudo docker run --mount type=bind,src="$(pwd)",target=/app -d -p 127.0.0.1:3000:3000 cpp-server
It couldn't be possible see the files writed, only using Docker Desktop in Windows.
sudo docker run -d -p 127.0.0.1:3000:3000 cpp-server
sudo docker rm $(sudo docker stop $(sudo docker ps -a -q --filter ancestor=cpp-server --format="{{.ID}}"))
This command will delete all the containers (Including the stopped ones) with the image itself.