- Front End : AngularJS, HTML, CSS, Bootstrap (Responsive).
- Back End : ExpressJS, NodeJS.
- Unit Testing : Chai, Mocha.
- Open a Terminal (or Command Prompt for Windows.).
- Create a new directory by typing below command in terminal and pressing Enter.
mkdir Tesing_Sample_API_Implementation - Enter the created directory by typing below command in terminal and pressing Enter.
cd Tesing_Sample_API_Implementation - Clone the repository with sample on local System by typing below command in terminal and pressing Enter.
git clone https://github.com/akshaysingh1520/Sample-RESTful-API-Endpoint-Using-NodeJS.git - Enter the cloned code directory (or repository) by typing below command in terminal and pressing Enter.
cd Sample-RESTful-API-Endpoint-Using-NodeJS - Run the below command in terminal and press Enter to install all the project dependencies.
npm install -d - Run the below command in terminal and press Enter to start API server.
node app.js - Open a browser like Google Chrome, Firefox etc. and type below url in the url address bar and press Enter.
http://localhost:3000/#!/ - Below Responsive UI will appear in the browser.

- Please enter the valid Latitude, Longitude and Radius, Click on "Search Button" to see the results.
- To run Unit tests make sure that the API Server is running. i.e. Steps 1 - 7 mentioned above should be performed at least.
- Open a new Terminal and Enter the cloned code directory (Similar to step 5 mentioned above).
- After entering the cloned repository i.e. "Sample-RESTful-API-Endpoint-Using-NodeJS", run the below command.
npm test - All the Unit tests for testing the RESTful API Endpoint are run and results are displayed in terminal.
Please see the output in the below image for reference.