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

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

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

Share This:


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

How to use EJS in Express                                                                                                    

set view engine in app.js

 

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: