An API call that returns a list of Portland-based doctors based on the user's search parameters. The list currently returns the first 30 indexed doctors that fall under the searched categories.
- The program will return a list of Portland-based doctors based on user search.
- Input: "pediatrician"
- Output: [List of PDX doctors who match this query]
- The program will return a list of Portland-based doctors who match any name specified in the user query.
- Input: "Robert"
- Output: "Robert Hanson, Robert Bly...", etc.
-
The program will return an error message in the event of a failed 200 status.
- Input: "nutrition"
- Output: "There was an error processing your request."
-
The program will return an error message in the event of an empty api return.
- Input: "lovesick"
- Output: "Sorry, there are currently no doctors in Portland that match that search."
- JavaScript
- HTML
- jQuery
- ESlint
- Babel
- Jasmine
- Karma
- Webpack
First, make sure you have node package manager installed. Check out https://www.npmjs.com/get-npm for information on that.
$ git clone https://github.com/Eucile/doctor-search
$ cd doctor-search
$ npm install
Grab an api key from https://developer.betterdoctor.com/.
exports.apiKey=[APIKEYGOESHERE]
$ npm run start
Copyright (c) 2018 { Krystal Foster}