This webpage takes either an illness or a name from a user and returns either doctors in their area that can treat the illness or any doctors that match the provided name. For the name search, the program also returns information like phone number, address, and whether the doctor is accepting patients.
-
Program returns doctors in an area that specialize in an illness/procedure
- Example input: 'back pain'
- Example output: 'John Doe, phone:123-456-7890; Jane Doe, phone:123-456-7890'
-
Program returns additional doctor information for any doctor whose name matches the input
- Example input: 'Bob'
- Example output: 'Bob Small, phone:123-456-7890, Pioneer Square, bobsmall@gmail.com; Bobby Brown, phone:123-456-7890, Laurelhurst, bobbrown@gmail.com'
-
Program returns an error message if the query fails
- Example input: 'Bob'
- Example output: 'Error 401: request unauthorized'
-
If name query doesn't match any doctors, program returns a message saying there were no matches
- Example input: 'Bob'
- Example output: 'Sorry - there are no doctors in your area matching that keyword'
- Clone this repository
- Go to the Better Doctor API, create an account, and access your api key
- Create an .env file and put your key there as exports.apiKey="your key here"
- Add the .env file to your .gitignore file
- On a Mac, run the following commands in terminal:
- npm install dotenv-webpack --save-dev (and add the plugin to your webpack.config.js file)
- npm install
- npm run start
- Input an illness or a doctor name to see options in your local area.
No known bugs.
Please contact me at dillontitcomb@gmail.com with inquiries.
- HTML
- CSS
- Bootstrap
- Javascript
- JQuery
- Node / NPM
- Webpack
- Better Doctor API
https://github.com/dillontitcomb/doctor-lookup
The software is licensed under the MIT license.
Copyright (c) 2018 Dillon Titcomb