Skip to content

mdmonis25/Mastering-NodeJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mastering-NodeJS

NodeJS Course by Piyush Garg

video 3:

npm init used to create package.json file, scripts can be changed to execute desired terminal code.

Video 4:

working with modules, how export and require works, exporting multiple functions.

Video 5:

File System: The Fs Module File Creation and modification

Video 6:

Architecture of nodejs, event queue, event loop, thread pool, blocking 7 non blocking requests

Video 7:

Builing Http server in nodejs, http module, createServer, listening to a port

Video 8:

Handling urls in nodejs, using req.url and switch case for different routes

Video 9:

HTTP Methods - get, post, put, patch, delete

Video 10:

Express {node's framework}, We don't need to use url or http or fs and most dependencies anymore, express will handle most of the things, refer documentation (app.get, app.listen, app = express())

Video 11:

Versioning: Dependecies "xyz":'4.18.2' last Part (2) - Minor fixes (Optional Update) Middle Part (18) - Bug fixes (Recommended Update) First Part (4) - Major/Breaking Update (Do not Update without reading or reviewing) ^ ~ latest etc. refer npmjs for documentation

Video 12:

REST or RESTFUL API, Clinet Server Architecture, Client Server Independent, Respect All HTTP Methods Server Side Rendering is fast but should only be used when you know that data is going to be displayed in a browser.

Video 13 -- Project 01 REST API:

building a RESTFUL API respecting all methods Dynamic Routing through Dynamic Path Parameter We can group different requests on a same route

Video 14 -- Post Man:

Using postman because you cannot use patch,deleete etc. from browser

Video 15 -- Express Middlewares:

Our request goes to middleware before it's destined route. Midddlewares have the power to reject or change or return response. Hacker, Data Proection etc. ( Refer Documentation)

Video 16 -- Headers:

Http headers store metadata about req and res, they contain request content type, response type, who is sending requests to whom etc. we can also send a custom header, it is recommended to start it's name with X.

Video 17 -- Status Codes:

Various codes have various purposes 1xx is for informational purposes 2xx is for success 3xx is for redirections 4xx is for client errors 5xx is for server errors Refer MDN Docs for detailed information

Video 18 -- MongoDB & Mongoshell Installation:

Install MongoDB Communiuty Edition & shell No SQL document based database Strong Support for Aggregation Pipes Works on BSON Applications Best for Node Applications

Video 19 -- Connecting Nodejs with mongoDb using mongoose:

Refer Video or Code

Video 20 -- Model View Controller

Controller manipulates Model & Model Update Views It is more readable and manageable Create the following folders and implement code according to it controllers,models,routes,views