bash ./scripts/install.sh
bash ./scripts/start.sh
start.sh
accepts an optional port number as a param, for example: bash ./scripts/start.sh 9000
If the port isn't provided, the default will be 8000
bash ./scripts/test.sh
URL: /command/
Method: POST
Body <JSON>: { "command": string }
Request:
curl -X 'POST' \
'http:https://localhost:8000/command/' \
-H 'accept: text/plain' \
-H 'Content-Type: application/json' \
-d '{
"command": "date"
}'
Response:
Sat Nov 12 12:57:16 EET 2022