Interactive fiction NodeJS Express app with cheapglk and glulxe backend, runs .ulx text adventures with POST and GET for I/O
cd cheapglk
make
cd ../glulxe
make
cd ..
npm install
node server.js
To get the last output:
curl -X GET http://localhost:8081
To send a command (ex. "look at stream"):
curl -X POST -H "Content-Type: application/json" -d '{"command":"look at stream"}' http://localhost:8081
You must GET after you POST in order to see the revised output from the GLULXE engine.