This project is a simple NodeJS dockerized app that performs Jwt authentication, Json patching and image thumbnail generation.
Clone the repository:
git clone [email protected]:tonyobanon/hackerbay_task.git
Start your container:
$ bin/start_disposable.sh
Start the application:
node server
The following URL should be accessible after running the application:
http://127.0.0.1:10000/v1/api-docs
The endpoints can be downloaded as a postman collection
Note:
- For Image thumbnail generation, open the link below in your browser http://localhost:10000/v1/protected/image/resize?imageURL=https://upload.wikimedia.org/wikipedia/commons/3/36/Hopetoun_falls.jpg&token={JWT_TOKEN}
Custom metric reporting is integration into this app, using StatsD and Graphite Dashboard
Open http://localhost:10001 to view your metrics dashboard
npm run test
npm run lint
Tony Anyanwu