Code Monkey home page Code Monkey logo

rxsavings's Introduction

RX Savings Solutions

Interview code challenge

A quick and simple Node Express and ArangoDB application that runs with Docker.

Initial Setup

This application requires docker and docker-compose to be installed on your machine. If you do not already have Docker installed, you can find the download instructions here: https://www.docker.com/products/docker-desktop and docker-compose here: https://docs.docker.com/compose/install/

Running the Application

  1. Clone this repo
git clone https://github.com/astanley86/rxsavings.git
  1. Rename .env.Example to .env (Feel free to change the values)
  2. Using a terminal command line, navigate to the project's root directory and run docker-compose up
  3. Open up a web browser to http://localhost:7042/?lat=38.862034&long=-94.685221 and replace the values after lat= and long= with valid latitude and longitude cooridinates.

Features

The lat and long query parameters are required and must be valid numbers. Endpoint is a GET request that returns a JSON object in the following format:

{
  "pharmacy": "CVS PHARMACY",
  "miles_distance": 2.604613276218439,
  "address": {
    "address": "5001 WEST 135 ST",
    "city": "LEAWOOD",
    "state": "KS",
    "zip": 66224
  }
}

Help and Support

Please do not hesitate to contact me if you run into any problems with Docker, running the application, or if you expected to see something different. Thank you for your time and consideration.

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.