dillontitcomb / doctor-lookup

webpage that allows users to find doctors in their local area

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dillon's Doctor Lookup Program

Javascript & API Exercise for Epicodus, 3.23.2018

By Dillon Titcomb

Description

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.

Specifications

  • 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

  • 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'

Setup/Installation Requirements

  • 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.

Known Bugs

No known bugs.

Support and contact details

Please contact me at dillontitcomb@gmail.com with inquiries.

Technologies Used

  • HTML
  • CSS
  • Bootstrap
  • Javascript
  • JQuery
  • Node / NPM
  • Webpack
  • Better Doctor API

Link to page

https://github.com/dillontitcomb/doctor-lookup

License

The software is licensed under the MIT license.

Copyright (c) 2018 Dillon Titcomb

About

webpage that allows users to find doctors in their local area


Languages

Language:JavaScript 83.9%Language:HTML 11.9%Language:CSS 4.3%