This application allows a user to search for a doctor by entering either a name or an ailment. The program will return a list of doctors with in 100 miles of Portland and will also proved the doctor's address, their phone number, and whether or not they are accepting new patients.
Behavior | Input | Output |
---|---|---|
User searches program by medical issue and program returns list of doctors who treat that issues | Anxiety | Doctors who treat anxiety |
User searches program by name and program returns list of doctors with that name | Jones | Doctors named Jones |
User seraches for invalid data and program returns error | I love lamp | "Sorry, there are no results that match your request. Please try again." |
User searches for valid data | Ear Infection | Doctor output will include first name, last name, address, phone number, website, and if doctor is accepting new patients |
In Terminal:
- Navigate to where you want this application to be saved, i.e.:
cd desktop
- Clone the file from GitHub with HTTPS
git clone https://github.com/kwicz/doctor-lookup.git
- Navigate to the new directory and install requirements.
cd doctor-lookup
npm install
- Create a new API Key at BetterDoctor
- In your directory, create a new file called .env. Add this file your your .gitignore file.
touch .env
- In your text editor, open the .env file and add
API_KEY = {your key here}
- In the command line, start your program by typing
npm run start
No known bugs at this time.
Have a bug or an issue with this application? Open a new issue here on GitHub.
- Better Doctor API
- Javascript
- jQuery
- npm
- Webpack
- ESLint
- Babel
- HTML & CSS
- Bootstrap 4
- Google Fonts
Copyright (c) 2020 K.Wicz