LBRY Block Explorer

LBRY Claims • 08-chain-middleware-to-create-a-time

f93ab2f4bf85fc7a7e200f7f6eb47dd6796962b2

Published By
Created On
25 Jun 2021 17:21:27 UTC
Transaction ID
Cost
Safe for Work
Free
Yes
08 - Chain Middleware to Create a Time Server - Basic Node and Express - freeCodeCamp Tutorial
Don't be an overconfident idiot like me, and you should be fine here!
We can avoid setting up multiple routes, and instead chain the middleware functions one after the other. When declaring a route, you can give as many arguments as you can, consisting of functions to be executed in order.

Link to challenge : https://www.freecodecamp.org/learn/apis-and-microservices/basic-node-and-express/chain-middleware-to-create-a-time-server
Written Guide : https://www.notion.so/ganeshh123/Chain-Middleware-to-Create-a-Time-Server-80fdb6c9c543478589e5cef4807f46a9

Full Playlist for this course : https://www.youtube.com/playlist?list=PLhGp6N0DI_1SdIZ3uhbXnKAq2UcICSnWS
All Writen Guides for this course : https://www.notion.so/ganeshh123/dab5e189407244c793c2f32d066eee9f
All My Tutorials can be found at : https://www.notion.so/Tutorials-Ganesh-H-293ea420d34a464f9a1907e0405b5f26

Concepts:
Middleware
Middleware functions are functions that have access to the request object (req), the response object (res), and the next middleware function in the application’s request-response cycle. The next middleware function is commonly denoted by a variable named next.
http://expressjs.com/en/guide/using-middleware.html

app.use()
Mounts the specified middleware function or functions at the specified path: the middleware function is executed when the base of the requested path matches path.
https://expressjs.com/en/api.html#app.use

-————————————————————————————————————-
Node.js is an open-source, cross-platform, JavaScript runtime environment that executes JavaScript code outside a web browser. Node.js lets developers use JavaScript to write command line tools and for server-side scripting—running scripts server-side to produce dynamic web page content before the page is sent to the user's web browser.

Express.js, or simply Express, is a web application framework for Node.js. It is designed for building web applications and APIs. It has been called the de facto standard server framework for Node.js. Express runs between the server created by Node.js and the frontend pages of a web application. Express also handles an application's routing.

freeCodeCamp (also referred to as “Free Code Camp”) is a non-profit organization that consists of an interactive learning web platform, an online community forum, chat rooms, online publications and local organizations that intend to make learning web development accessible to anyone. Beginning with tutorials that introduce students to HTML, CSS and JavaScript, students progress to project assignments that they complete either alone or in pairs. Upon completion of all project tasks, students are partnered with other nonprofits to build web applications, giving t
...
https://www.youtube.com/watch?v=21JhRUsuEPk
Author
Content Type
Unspecified
video/mp4
Language
English
Open in LBRY

More from the publisher

Controlling
VIDEO
13 -
Controlling
VIDEO
1 - H
Controlling
VIDEO
00 -
Controlling
VIDEO
04 -
Controlling
VIDEO
06 -
Controlling
VIDEO
03 -
Controlling
VIDEO
2 - S
Controlling
VIDEO
18 -
Controlling
VIDEO
21 -