- Fork and clone the repo, then
cd
into the repo - Run command
npm install
at terminal to install all dependencies - Create a
.env
file at the root directory - Insert the following in
.env
file to connect to MySQL remote database
ENV=development
TIMEOUT=5000
PORT=9711
DB_VERSION=5.7
DB_HOST=<db_hostname>
DB_USER=<db_username>
DB_PASSWORD=<db_password>
DB_DATABASE=<db_name>
- Run command
npm start
to start the app - You can use POSTMAN to test your APIs by going to http://localhost:9711
-
POST:
/paths
to add new paths. -
GET:
/paths
to see the list of paths. -
DELETE:
/paths
to clear the paths that you added -
GET:
/paths/<id>/navigate
should return the navigated path
- Refer to
Navigator.txt
file for more explanation