项目作者: nbadiganti

项目描述 :
Get started with Mongo DB with Express - using Mongoose schema
高级语言: JavaScript
项目地址: git://github.com/nbadiganti/express-mongoose.git
创建时间: 2017-10-20T13:29:51Z
项目社区:https://github.com/nbadiganti/express-mongoose

开源协议:

下载


express-mongoose

Get started with Mongo DB with Express - using Mongoose schema

This project helps to create APIs using MongoDB with express JS to handle requests.
Documentation

Setup and installations

Step 1 - install mongo db Link

Step 2 - npm install ( make sure that you are in your project folder)

Step 3 - Run the mongo server using the command mongod (Assuming that you have successfull mongodb server up and running)

Step 4 - Now access the below urls to post and get the data via API`s

  1. 1. To add a category - http://localhost:3000/addCategory
  2. Request body : {
  3. "categoryName": "Top 50 Pick LInes",
  4. "status": "active",
  5. "categoryType" : "top50"
  6. }
  7. 2. To get All categories - http://localhost:3000/getAllCategories
  8. 3. To add new conversation - http://localhost:3000/addConversation
  9. Request body : {
  10. "chat" : [ "test2", "category test" ,"what the hell" , "wassup buddy"],
  11. "status" : "active",
  12. "categoryName" : ["romantic", "cute"]
  13. }
  14. 4. Get conversations by category - http://localhost:3000/getConversationsByCategory
  15. Request body : {
  16. "categoryName" : "chessy"
  17. }

Created & Maintained By

Nagendra Badiganti (@nagendrabadigan)
(Insta)

If you found this project helpful or you learned something from the source code and want to thank me, consider buying me a cup of :coffee:

License

This project is licensed under the MIT License - see the LICENSE.md file for details