DEV Community

loading...

NodeJS/Express – POST/GET to MongoDB using Mongoose – AngularJS + Bootstrap form example

loizenai
Software Engineer - Founder at https://loizenai.com
・1 min read

https://grokonez.com/node-js/nodejs-express-post-get-to-mongodb-using-mongoose-angularjs-bootstrap-form

NodeJS/Express – POST/GET to MongoDB using Mongoose – AngularJS + Bootstrap form example

In the tutorial, we show how to POST/GET form data to/from MongoDB in NodeJS/Express application using Mongoose with AngularJS & Bootstrap view.

Related posts:

Goal

Technologies
– NodeJS/Express
– Mongoose
– MongoDB
– AngularJS
– Bootstrap

We create a NodeJS/Express project as below structure:


/NodeJS-Express-AngularJS-Bootstrap-MongoDB
    /app
        /config
            mongodb.config.js
        /controllers
            user.controller.js
        /models
            user.model.js
        /routes
            user.route.js
    /node_modules
    /resources
        /static
            /js 
                controller.js
    /views
        404.html
        index.html
    app.js
    package.json

Run above project then makes POST/GET requests, results:

-> Bootstrap view:

NodeJS-Express-AngularJS-Bootstrap-POST-GET-form-data-MongoDB-view

-> MongoDB’s collections:

More at:

https://grokonez.com/node-js/nodejs-express-post-get-to-mongodb-using-mongoose-angularjs-bootstrap-form

NodeJS/Express – POST/GET to MongoDB using Mongoose – AngularJS + Bootstrap form example

Discussion (0)

Forem Open with the Forem app