GithubHelp home page GithubHelp logo

doctor-lookup's Introduction

Doctor Look Up

This site will allow you to look up a doctor near you. | Feb 14th. 2020

By ** Dusty McCord**

link to demo site coming

Description

This site was created as an Epicodus independent project. It uses the BetterDoctor API to find doctors near you.

logo

Setup/Installation Requirements

Make sure you have git version control installed on your computer.

  1. Find the green 'Clone or Download' button and copy the link
  2. Open your terminal and type...

Windows

cd desktop

Mac & linux

cd ~/Desktop
  1. Then clone the repositor by typing:
git clone https://github.com/dustatron/Doctor-Lookup.git
  1. Navigate to the new folder that was created by typing:
cd folder name
  1. Now install all node packages by typing:
npm install
  1. Get an API key from BetterDoctor API

7.Get an API key from OpenCage Geocoder

  1. Create a new '.env' file by typing:
touch .env
  1. Open the .env file in your test editor and add the following:
API_KEY = YOUR UNIQUE API KEY FOR BETTERDOCTOR API
GEO_API_KEY = YOUR OPENCAGE API HERE
  1. Now run the development server
npm run start
  1. Edit files in '/src' to make changes to the project.

Specs

Behavior Driven Development Spec List

Behavoir Input Output
1 - A user will enter a keyword and the program will return a listing of doctors near them. 'couching' return list of doctors
2 - A user will enter a name and the program will return a list of doctors. McCord return list of Doctors with the name McCord
3 - The program will return a list that includes first name, last name, address, phone number, website and whether or not the doctor is accepting new patients. McCord list with first name, last name, address, phone number, website and whether or not the doctor is accepting new patients
4 - When the API returns an error the program will return a message stating the issue API returns error show error
5 - If the API returns no doctors the program should tell the user no Doctors where found API returns an empty array "No Doctors with your search criteria where found"
6 - A user can input a city and the program will return a list of doctors in that city Seattle list of doctor in seattle based on search terms
7 - The user can search for both name and keyword. The program will return a list of doctors based city, keyword, and name seattle, Geltzer, cancer Dr. Allen J Geltzer, MD

Support

The software is provided as is. It might work as expected - or not. Use at your own risk.

Built With

Environmental Variables Basics

Make sure you have an '.env' in the top level of your project. The syntax should look like this

API_KEY = YOUR UNIQUE API KEY GOES HERE
OTHER_API_KEY = OTHER UNIQUE API KEY GOES HERE

Use this syntax in your query string:

'process.env.API_KEY'.

Example query string:

const city = 'get city from user';
const url = `http://api.openweathermap.org/data/2.5/weather?q=${city}&appid=${process.env.API_KEY}`;

Add this to your eslinter settings file under env:

... 
"extends": "eslint:recommended",
"env": {
    "node": true //allows env api key
}
...

Useful tools





License

This project is licensed under the MIT License - see the LICENSE.md file for details

Copyright (c) 2020 Dusty McCord

doctor-lookup's People

Contributors

dustatron avatar

Watchers

James Cloos avatar  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.