- node.js installed
- run the server
cd /path/to/server/
and install dependencies:npm install
- run
node ./server.js
(ideally, add to startup apps) - install for example REST Client for Android
- test it by sending DELETE requests to your computer's IP on port 9999
- if needed, open port 9999 (just for local network) for instance by
sudo iptables -A INPUT -p tcp --dport 9999 -j ACCEPT
(ideally, save iptables permanently) - if needed, provide password to your script as a first command line paramater