https://github.com/nbadiganti/express-mongoose
Get started with Mongo DB with Express - using Mongoose schema
https://github.com/nbadiganti/express-mongoose
controllers express-mongoose models mongodb mongodb-orm mongoose-schema nodejs restful-api routers
Last synced: about 2 months ago
JSON representation
Get started with Mongo DB with Express - using Mongoose schema
- Host: GitHub
- URL: https://github.com/nbadiganti/express-mongoose
- Owner: nbadiganti
- Created: 2017-10-20T13:29:51.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-12-19T11:57:51.000Z (over 7 years ago)
- Last Synced: 2025-01-14T07:47:35.755Z (over 1 year ago)
- Topics: controllers, express-mongoose, models, mongodb, mongodb-orm, mongoose-schema, nodejs, restful-api, routers
- Language: JavaScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://nbadiganti.github.io/express-mongoose/)
## Setup and installations
Step 1 - install mongo db [Link](https://docs.mongodb.com/manual/installation/)
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. To add a category - http://localhost:3000/addCategory
Request body : {
"categoryName": "Top 50 Pick LInes",
"status": "active",
"categoryType" : "top50"
}
2. To get All categories - http://localhost:3000/getAllCategories
3. To add new conversation - http://localhost:3000/addConversation
Request body : {
"chat" : [ "test2", "category test" ,"what the hell" , "wassup buddy"],
"status" : "active",
"categoryName" : ["romantic", "cute"]
}
4. Get conversations by category - http://localhost:3000/getConversationsByCategory
Request body : {
"categoryName" : "chessy"
}
### Created & Maintained By
[Nagendra Badiganti](https://github.com/nbadiganti) ([@nagendrabadigan](https://www.twitter.com/nagendrabadigan))
([Insta](https://www.instagram.com/nbadiganti))
> 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:
>
> * [PayPal](https://www.paypal.me/codingcursor/)
> * [Portfolio](https://www.driftycode.com)
## License
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details