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.
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);
Good topic
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.
❤❤❤
why you could delete app.listen without any problem ???
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);
do chatgpt
🙏🙏🙏
🙏👍👍
{2023-10-05}
{23-9-2024}