This is my implementation of the Robot simulator. It is written in JavaScript and React.js is used as the framework.
When running the app via Docker Nginx is used to serve the static build files.
The app supports entering commands in english, french, and swedish, and it supports both square and circular rooms.
- Node.js and Yarn for running the app, tests or linting locally.
If you are using NVM you can install a compatible version from the
.nvmrc
file usingnvm use
- Docker for running the app via Docker
- docker-compose for running the app via docker-compose
To run the tests:
- Install the dependencies using
yarn install
- Run
yarn run test
To run the linting:
- Install the dependencies using
yarn install
- Run
yarn run lint
To run it using Docker:
- Ensure you have Docker installed on your system
- Build the Docker image using
docker build -t robot-simulator .
- Start the container using
docker run -p 3000:80 -t robot-simulator
- The app will be available on http://localhost:3000
To run it using docker-compose:
- Ensure you have Docker and docker-compose installed on your system
- Start the app using
docker-compose up
- The app will be available on: http://localhost:3000
- Install the dependencies using
yarn install
- Run the app using
yarn run start
- The app will be available on http://localhost:3000, by default
The app is automatically deployed to Azure on push to the following URL.