This is a REST service for Resource Manager application. The APIs are written in node js and EXPRESS framework. The service consists of 5 different endpoints:
- getAll - Returns all items
- getItem - Returns matching item by itemId
- postItem - Creates new item
- updateItem - Updates existing item by itemId
- deleteItem - Deletes existing item by itemId
- upload - Uploads an image with filename as itemName
- download - Retrieves specified image
- nodejs version > 8.x download here
- npm version > 6.x (Usually included with nodejs)
- mongoDBCommunityEdition download here
Run mongo daemon service to open connection to local data server
mongod --dbpath <Path to data storage directory here>
Install Dependencies
npm install
Build and run the service
node app
The application will be running at http://localhost:3050.
Port number can be set using app.use("port") in the app.js.