#67 MVC Architecture in NODE JS | Using MongoDB with Express| A Complete NODE JS Course

preview_player
Показать описание
In this lecture, let's learn what is MVC architecture and how it works? And let's also refactor our NODE JS application code to implement this MVC architecture.
Рекомендации по теме
Комментарии
Автор

Good tutorial on NodeJS and MongoDB you have here. God bless your contribution. Is there Github clone for this NodeJS MongoDB video classes? It will better help student t learn faster rather than typing one after the other while the video plays on.

olamijiakeemodeyemi
Автор

hello sir can you please tell me in which video's description you have inserted the code for curd operations I have written code for post req data is inserted in json file but it is not showing any response in postman

const createMovie=(req, res)=>{
const newId=movies[movies.length - 1].id + 1;
const newMovie=Object.assign({id:newId}, req.body);
movies.push(newMovie);

//201 we added new movie
fs.writeFileSync('./data/movies.json', JSON.stringify(movies), (err)=>{
console.log(err);
res.status(201).json({
status:"sucescc",
data:{
movies:newMovie
}
})
})
}

app.post('/api/v1/movies', createMovie);

kishansingh-ywul
Автор

why you could delete app.listen without any problem ???

AberrahimCoder