Giter Club home page Giter Club logo

clinic_search_api's Introduction

Clinic Search

Table of Contents
  1. About The Project
  2. Built With
  3. Getting Started

About The Project

The project is a solution for this coding challenge.

The application consists of an API with only one endpoint to search clinics using different query params.

The endpoint URL is /clinics and it is a GET method that allow any of the following query params:

  • name
  • state (name or abbreviation)
  • from (format hh:mm)
  • to (format hh:mm)

You can combine the parameters to filter the list as you like.

For example, calling the endpoint passing the name filter (/clinics?name=good) will return the following response body:

[
   {
      "name":"Good Health Home",
      "stateName":"Alaska",
      "availability":{
         "from":"10:00",
         "to":"19:30"
      }
   },
   {
      "name":"Good Health Home",
      "stateName":"Florida",
      "availability":{
         "from":"15:00",
         "to":"20:00"
      }
   }
]

Built With

The project was built in NodeJS using Express.js framework with TypeScript.

Getting Started

There are two ways of running this project: on your machine or on a docker container. The latter one is easier if you have Docker installed.

Dependencies

If you are going to execute the project on your machine instead of using Docker, then you will need to install NodeJS.

Execution

On your machine

After cloning this repository you will need to execute the following commands on the root folder:

npm install
npm run dev

The API is now running on http://localhost:8000.

Using Docker

If you have Docker installed, then access the root folder to execute the following command:

docker-compose up

The API is now running on http://localhost:8000.

clinic_search_api's People

Contributors

laryssacarvalho avatar

Watchers

 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.