Skip to content

pjain-techracers/API-calls

Repository files navigation

Hinge Health Services - Javascript

Coding Challenge that exposes 2 APIs to get or update a tree.

Environment

Packages used

Installation

Use the package manager npm to install dependancies. In the root folder run below command.

npm install

Usage

To run server run

npm start

Else

  • To start your server, run node index.js. Open up your favorite browser and navigate to http://localhost:3001/ and you should see "Hello World!".

Fix eslint of javascript files

npm run lint:fix

Run with Docker

Build the docker image

docker build -t hinge-health .

Run the docker image

docker run -d -p 3001:3001 hinge-health

Assumptions

  1. There is no authentication in the APIs.
  2. Application used file based in-memory data/tree.json to store the content

About

Simple API calls exposed using file storage

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published