/Nodejs-MongoDB-RESTful

A demo to show the knowledge of Node.js, MongoDB and RESTful api

Primary LanguageJavaScript

A example to show the knowledge of Node.js, MongoDB and RESTful

This is a example about Node.js.

In this demo, I designed it with the MVC pattern, and I used some middleware such as Express, Mongoose and Body-Parser. In addition, I used mLab Sandbox database to test.

Moreover, the example will show the CURD operations with RESTful principle.


The RESTful apis in the example

  • Test Connection

    • Type: GET
    • Url: /product/test
  • Create Products Info

    • Type: POST
    • Url: /product/create
  • Load Product Info List

    • Type: GET
    • Url: /product/list
  • Find Product Info By Id

    • Type: GET
    • Url: /product/detail/:id
  • Update Product Info By Id

    • Type: PUT
    • Url: /product/detail/:id/update
  • Delete Product Info By Id

    • Type: DELETE
    • Url: /product/detail/:id/delete