Code Monkey home page Code Monkey logo

doctor-search's Introduction

A Better Doctor API

application to practice API calls by Krystal Foster

Oct. 12, 2018

Description

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.

Specs

  1. 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]
  1. 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.
  1. 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."
  2. 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."

Technologies and Resources

  • JavaScript
  • HTML
  • jQuery
  • ESlint
  • Babel
  • Jasmine
  • Karma
  • Webpack

Setup Instructions

First, make sure you have node package manager installed. Check out https://www.npmjs.com/get-npm for information on that.

Then:

$ git clone https://github.com/Eucile/doctor-search

$ cd doctor-search

$ npm install

Next, create a .env file

Store the key as:

exports.apiKey=[APIKEYGOESHERE]

Finally:

$ npm run start

License

Copyright (c) 2018 { Krystal Foster}

doctor-search's People

Contributors

kmichele avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.