
Learn Node.js - Full Tutorial for Beginners
video description
Date: 2022-03-14
Related videos
Comments and reviews: 10
Arpan
For all those who are using this tutorial from the point in time this comment is made and onwards: bodyparser module has been deprecated and its functionality included in the express() module. So, eg. one need not use bodyparser.json(), one can simply use express.json().
In the section about Joi, Joi.validate() does not work anymore. One can now simply use schema.validate(req.body), store its value in a variable and check that variable(apparently, schema.validate() does not take any callbacks in which you can include the checks). 'schema' being defined as in this video.
reply
For all those who are using this tutorial from the point in time this comment is made and onwards: bodyparser module has been deprecated and its functionality included in the express() module. So, eg. one need not use bodyparser.json(), one can simply use express.json().
In the section about Joi, Joi.validate() does not work anymore. One can now simply use schema.validate(req.body), store its value in a variable and check that variable(apparently, schema.validate() does not take any callbacks in which you can include the checks). 'schema' being defined as in this video.
reply
Hassan
Nice video i followed all your steps in NodeJs and add the Express JS module, it was informative, there is one issue i got with the dependency of joi-14.0.0 even when i got the 17 version and downgrad it i couldn't get the same result i got some errors related to headers even tho i commented the middleware of json and urlencoded (-extended : false-)
I noticed that the joi.validate(req.body,schela, (err,result)=>- - always landed on err not on result
reply
Nice video i followed all your steps in NodeJs and add the Express JS module, it was informative, there is one issue i got with the dependency of joi-14.0.0 even when i got the 17 version and downgrad it i couldn't get the same result i got some errors related to headers even tho i commented the middleware of json and urlencoded (-extended : false-)
I noticed that the joi.validate(req.body,schela, (err,result)=>- - always landed on err not on result
reply
David
A simpler way to delete a non-empty directory. Add the optional second parameter (options object) and set the recursive key to true. This will prompt the rmdir function to delete the entire directory recursively.
fs.rmdir('./newDirectory', - recursive: true -, (err) => --
-if (err) throw err;-
-else console.log('directory and all files deleted successfully');-
-);
reply
A simpler way to delete a non-empty directory. Add the optional second parameter (options object) and set the recursive key to true. This will prompt the rmdir function to delete the entire directory recursively.
fs.rmdir('./newDirectory', - recursive: true -, (err) => --
-if (err) throw err;-
-else console.log('directory and all files deleted successfully');-
-);
reply
pmellow
I can follow your code and successfully executed the app, but I don't understand a thing, the tutorial kinda went too fast and show things that came out of no where.
thanks anyway
and anyone who got their bodyParser deprecated warning, it's because as of now Express (4.16+) has bodyParser built-in so you don't need dependency on body-parser module anymore
reply
I can follow your code and successfully executed the app, but I don't understand a thing, the tutorial kinda went too fast and show things that came out of no where.
thanks anyway
and anyone who got their bodyParser deprecated warning, it's because as of now Express (4.16+) has bodyParser built-in so you don't need dependency on body-parser module anymore
reply
shreejit
Everything was going great untill the moment you put in Jquery without even explaining anything. should've kept code restricted to js or explain more about... I went completely blank from that point onwards... also my CSS files are being refused to get accepted by the browser as MIME type error.
reply
Everything was going great untill the moment you put in Jquery without even explaining anything. should've kept code restricted to js or explain more about... I went completely blank from that point onwards... also my CSS files are being refused to get accepted by the browser as MIME type error.
reply
CrepsDelic
For anybody doing this tutorial and struggeling with the -app.use('/public', express.static(path.join(__dirname, '../static')));- --> Remember to href=-/public/your/path- (Your scripts and stylesheets)
dont make the mistake to href=-/static/your/path-
Sure it helps someone! Cheers!
reply
For anybody doing this tutorial and struggeling with the -app.use('/public', express.static(path.join(__dirname, '../static')));- --> Remember to href=-/public/your/path- (Your scripts and stylesheets)
dont make the mistake to href=-/static/your/path-
Sure it helps someone! Cheers!
reply
Holo
Everytime I try to learn from videos like these, I go from morning into sunset and would have only covered 1 hour (like right now)... I usually write notes on the side for future reference, while trying it myself on VSCode. Then I Google a question if I have any.
How do I get faster XD
reply
Everytime I try to learn from videos like these, I go from morning into sunset and would have only covered 1 hour (like right now)... I usually write notes on the side for future reference, while trying it myself on VSCode. Then I Google a question if I have any.
How do I get faster XD
reply
Amos
hey Pedro. Thanks for this!
If I may: the word -query- is pronounced -Kwerry-, not -kyurry-. It just makes you suddenly sound a little less professional whenever you say the word.
Also - & = -Ampersand-
reply
hey Pedro. Thanks for this!
If I may: the word -query- is pronounced -Kwerry-, not -kyurry-. It just makes you suddenly sound a little less professional whenever you say the word.
Also - & = -Ampersand-
reply
50121241327104
Hey, im a CS Student and I have an internship right now, requiring me to learn Node JS for custom plugin development. Should I take a look at your JavaScript course before starting with this course?
reply
Hey, im a CS Student and I have an internship right now, requiring me to learn Node JS for custom plugin development. Should I take a look at your JavaScript course before starting with this course?
reply
Linh
49:18 you can use:
fs.writeFile('./tutorial/example.txt', '123', (err, data)=>-
--
if (err) --
console.log(err)-
- else --
console.log('data, successfully created file)-
--
-);
reply
49:18 you can use:
fs.writeFile('./tutorial/example.txt', '123', (err, data)=>-
--
if (err) --
console.log(err)-
- else --
console.log('data, successfully created file)-
--
-);
reply
Add a review, comment
Other channel videos















