Skip to content

lootster/node-project-practice

Repository files navigation

Getting Started

  1. Fork and clone the repo, then cd into the repo
  2. Run command npm install at terminal to install all dependencies
  3. Create a .env file at the root directory
  4. 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>
  1. Run command npm start to start the app
  2. 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

  1. Refer to Navigator.txt file for more explanation

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published