VehiclesFashionRecipesBlogsHuntTravelsSportFunHandmadeITEducation
Mini-Games
x

x
zakruti.com » IT - Software » freeCodeCamp.org
Learn Node.js - Full Tutorial for Beginners

Learn Node.js - Full Tutorial for Beginners

FBTwitterReddit

video description

Rating: 4.0; Vote: 1
Node.js is an open-source, cross-platform JavaScript run-time environment that executes JavaScript code outside of a browser. Learn all about Node.js in the full course for beginners. -Install Node.js: https://nodejs.org/en/ -Install Visual Studio Code: https://code.visualstudio.com/ --Course Contents
Date: 2022-03-14

Comments and reviews: 10


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

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

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

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

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

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

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

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, 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

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