https://grokonez.com/node-js/crud-restapis-with-nodejs-express-mongodb

Crud RestAPIs with NodeJS/Express, MongoDB using Mongoose

In the tutorial, we show how to build CRUD RestAPIs with NodeJS/Express and MongoDB using Mongoose.

Related posts:

Goal

Prerequisites: Create NodeJs/RestAPIs tutorial

-> Project structure:


/nodejs-restapi
	/app
		/controllers
			customer.controller.js
		/routes
			customer.routes.js
	/node-modules
	package.json
	server.js

Objective: design, create models and interact with MongoDB by Mongoose.

-> The tutorial will create a project as below structure:


/nodejs-restapi-mongodb
	/app
		/config
			mongodb.config.js
		/controllers
			customer.controller.js
		/models
			customer.model.js
		/routes
			customer.routes.js
	/node_modules
	package.json
	server.js

Mongoose

Mongoose is a MongoDB object modeling tool that provides a schema-based solution to model data. Mongoose is installed in your project (package.json) by commandline:

More at:

https://grokonez.com/node-js/crud-restapis-with-nodejs-express-mongodb

Crud RestAPIs with NodeJS/Express, MongoDB using Mongoose

#node #express #mongoose #crud

Crud RestAPIs with NodeJS/Express, MongoDB using Mongoose » grokonez
1.45 GEEK