For more information read our docs
Node server accepts post requests and sends messages to Galileo through websockets.
To run the server locally first install all the project dependencies. From the project directory run
npm install
To run the server locally simply run
node server.js
Follow the Azure documentation
Run the client application.
You can then make a post request to the server. The server endpoint will depend on where you have deployed the server.
curl -v -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"angle":90, "distance":2}' http://localhost:1337/robot
You can also post a list of commands. Just post an array of the command objects to localhost:1337/robot/list
===
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.