https://github.com/vectormike/hackerbay-interview_backend
https://github.com/vectormike/hackerbay-interview_backend
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/vectormike/hackerbay-interview_backend
- Owner: Vectormike
- Created: 2020-03-27T09:58:40.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-30T19:58:25.000Z (over 3 years ago)
- Last Synced: 2025-02-02T06:41:28.375Z (over 1 year ago)
- Language: JavaScript
- Size: 1.62 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hackerbay Interview Backend
## A simple stateless microservice in Nodejs with the following functionalities -
Authentication
JSON patching
Image Thumbnail Generation
### Endpoints
- `POST` `/api/auth`
- takes in `email` and password and returns a JSON web token
- `POST` `/api/createthumbnail`
- generates thumbnail after a resize of the initial.
- `POST` `/api/patch`
- Patches JSON document using jsonpatch by applying patch to document.
### Dependencies
- NodeJs
- Express
- jsonpatch
- bunyan
- jimp
- jsonwebtoken
### Start
- Run `npm start` to start server
- Or `npm run dev` for development purpose
### Test
- `npm test`
## Docker
- Link: https://hub.docker.com/repository/docker/vectormike/node-api