Edit form in Node JS

To install the mongoose:                                                                    

routes/post.js

MongoDB connection using mongoose with node JS:

Write the following code in app.js Create schema for blog post: schema/post.js View : views/post.ejs Download Code

Share This:


Fetch data from MongoDB in Node Js | List data from MongoDB in Node JS

To install the mongoose:                                                                    

routes/post.js

MongoDB connection using mongoose with node JS:

Write the following code in app.js Create schema for blog post: schema/post.js View : views/post.ejs Download Code

Share This:


Node JS with mongoose | Create schema | Save data to mongodb in node js

To install the mongoose:                                                                    

routes/post.js

MongoDB connection using mongoose with node JS: Write the following code in app.js Create schema for blog post: schema/post.js View : views/post.js

Download Code

Share This:


Basic website in Node Js | Use of EJS in Express | Routing | Partials

How to use EJS in Express                                                                                                    Download Code

set view engine in app.js

 

Download Code

Share This:


Create first node js project and change view template engine jade to ejs

by default node server Listening on port 3000

open http://localhost:3000 and you are in node js world now.

To change the view template engine jade to ejs:

change view engine name jade to ejs in app.js

app.set('view engine', 'ejs');

change all jade view files to ejs.

Share This:


Upgrading or downgrading node js version

To check the current version of node use following command:

 

Share This:


Upgrade the latest node js version

* To check the latest version use following command:

 

Share This: