As we all know, everybody needs to see a doctor sometimes. But finding a doctor that provides the services you need nearby can be time consuming. To facilitate this, we have created a website where users may enter a medical issue into a form, submit it, and receive a list of doctors in your city (Portland or Seattle depending on where you are) who can treat their medical issue.
Spec | Input | Output |
---|---|---|
Lookup by symptom | "Symptom" | Doctor first name, last name, address, phone number, website and whether or not the doctor is accepting new patients |
Lookup by name | "Smith, Jane" | Doctor first name, last name, address, phone number, website and whether or not the doctor is accepting new patients |
Call produces an error | (Not a 200 OK) | Correct error notification |
No results for inputted criteria | Returns a notification that states that no doctors meet the criteria |
To clone and run this application, you'll need Git and Node.js (which comes with npm) installed on your computer. From your command line:
# Clone this repository
$ git clone https://github.com/meyerclemon/Doctor_Lookup
# Retrieve API key
$ Go to BetterDoctor API and register for an API key.
# Setup API
$ Create a file called .env and store the key there in the following format: exports.apiKey = <YOUR API KEY HERE>
# Install dependencies
$ npm install
# Run the app
$ npm run build
$ npm start
Note: If you're using Linux Bash for Windows, see this guide or use node
from the command prompt.