Move and track robots
-
Clone the repository:
git clone https://github.com/atlasmaxima/robot_movement.git
-
Install dependencies:
npm install
-
Build the project:
npm run build
-
Start the application:
npm start -- -h
Example cli command:
npm start -- -t warehouse -o SW -s NESW
npm run start:dist
Example cli command:
npm run start:dist -- -t warehouse -o SW -s NESW
-
Run Test:
npm run test
-
Pull Docker image:
docker pull ghcr.io/atlasmaxima/robot_movement:main
-
Run Docker container:
docker run --platform linux/amd64 -p 9000:8080 ghcr.io/atlasmaxima/robot_movement:main
-
Send a request:
curl "http://localhost:9000/2015-03-31/functions/function/invocations" -d '{}'
{ "robotType": "warehouse", "moveSequence": "NESW", "gridOrigin": "SW", "gridSize": 10, "startX": 0, "startY": 0 }
curl "http://localhost:9000/2015-03-31/functions/function/invocations" -d '{"robotType":"warehouse","moveSequence":"NESW","gridOrigin":"SW","gridSize":10,"startX":0,"startY":0}'
Invoke-RestMethod -Uri "http://localhost:9000/2015-03-31/functions/function/invocations" -Method Post -Body '{}'