Skip to content

A node js API for performing crud operations on a database in mongoDB

Notifications You must be signed in to change notification settings

chethanMysore/node-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Resource Manager Service

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

System Requirements

Build Instructions

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.

About

A node js API for performing crud operations on a database in mongoDB

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published