Toy Robot
Simplistic example of a robot walking around a table from entrance up to the exit.
System Requirements
- NodeJS v6.9.5 LTS
- Tested under Mac OSX 10.12.3
Installing NodeJS
Windows and Mac users
- Go to https://nodejs.org/en/download then download and install appropriate version (both in Windows and Mac is a one file installer).
Linux Users
- Download sources from https://nodejs.org/en/download and run following command to install it:
$ ./configure && make && make install
Test NodeJS was correctly installed
- Test that NodeJS was correctly installed in your system executing following command (it must print v4.2.3):
$ node -v
Installing application
- On application root path, run following command to download application dependencies
$ npm install
Starting application
- On application root path, run following command to execute a file with commands
$ npm start <FILE_PATH>
Executing application unit tests
- On application root path, run following command to run tests
$ npm test
Checking application code coverage
- On application root path, run following command to generate code coverage site
$ npm run coverage