A web service built using Node.JS that uses Google's phone library to parse a string and return phone numbers found in a text file or as part of a URI segment
- Clone the repository
- Navigate to the repository directory and execute
npm install
to obtain packages
- Start the server by executing
npm start
in the repository directory - Launch Postman/HTTP client
- Perform a GET request to
localhost:3000/
to retrieve all possible URIs and usage information regarding the web service - Perform a GET request using provided information from root endpoint
- Perform a POST request using provided information from root endpoint
Note: Web service will respond only with JSON data
Execute npm test
in the repository directory
All test codes are placed inside __test__
directory. Please include all sample test files into __test__/sampleFiles
directory.
Please send pull requests for fixes, updates and new features.
-
Node JS - A JavaScript runtime built on Chrome's V8 JavaScript engine
-
google-libphonenumber - An up to date version of Google's libphonenumber packaged for Node JS
-
SuperTest - Unit testing framework for HTTP requests
-
Express JS - Fast minimalist framework for Node JS