Coding Challenge that exposes 2 APIs to get or update a tree.
- NodeJs v13+
- Express v4.18.2
Use the package manager npm to install dependancies. In the root folder run below command.
npm install
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
Build the docker image
docker build -t hinge-health .
Run the docker image
docker run -d -p 3001:3001 hinge-health
- There is no authentication in the APIs.
- Application used file based in-memory data/tree.json to store the content