Simple API to query local database with caching options. Written in javascript using Node.js
The following instructions will get you a copy of the API up and running on your local machine...
In order to run this API Node.js is required.
Install Node.js https://nodejs.org/en/ (LTS version)
Verify Node and NPM have been installed via running the below commands in terminal
node -v
npm -v
From terminal
# Clone the repository
git clone https://github.com/jaortiz/simple-cab-api.git
# Go into the repository
cd simple-cab-api
# Install dependencies
npm install
# Start the API
npm start
There are 2 provided ways to access the API
- simple-cab-cli
# Start the API
npm start
# In a new terminal instance
npm run cli
# Follow the cli prompts
- Postman Scripts Collection
Install the postman api client https://www.getpostman.com/
Import the provided collection located in /postman-scripts.
Run any of the requests once the API has been started.