LBRY Block Explorer

LBRY Claims • 10-get-query-parameter-input-from-the

a2440cb562b58f96f41bc8e6737cd3fc6475124b

Published By
Created On
25 Jun 2021 17:21:27 UTC
Transaction ID
Cost
Safe for Work
Free
Yes
10 - Get Query Parameter Input from the Client - Basic Node and Express - freeCodeCamp Tutorial
An alternate way to receive inputs from URLs is queries. Queries start with a question mark, and have key=value pairs separated by ampersands (&). These will be extracted by express and stored in the query object of the request.

Link to challenge : https://www.freecodecamp.org/learn/apis-and-microservices/basic-node-and-express/get-query-parameter-input-from-the-client
Written Guide : https://www.notion.so/ganeshh123/Get-Query-Parameter-Input-from-the-Client-298614fe48884ddbbf50a7dd223bc6f7

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:
request.query
This property is an object containing a property for each query string parameter in the route. When query parser is set to disabled, it is an empty object {}, otherwise it is the result of the configured query parser.
https://expressjs.com/en/api.html#req.query

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.get()
Routes HTTP GET requests to the specified path with the specified callback functions.
https://expressjs.com/en/5x/api.html#app.get.method

response.json()
Sends a JSON response. This method sends a response (with the correct content-type) that is the parameter converted to a JSON string using JSON.stringify(). The parameter can be any JSON type, including object, array, string, Boolean, number, or null, and you can also use it to convert other values to JSON.
https://expressjs.com/en/api.html#res.json

-————————————————————————————————————-
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��
...
https://www.youtube.com/watch?v=gFfQXY1lYoM
Author
Content Type
Unspecified
video/mp4
Language
English
Open in LBRY

More from the publisher

Controlling
VIDEO
00 -
Controlling
VIDEO
29 -
Controlling
VIDEO
QUICK
Controlling
VIDEO
HOW T
Controlling
VIDEO
00 -
Controlling
VIDEO
08 -
Controlling
VIDEO
CAPTU
Controlling
VIDEO
16 -
Controlling
VIDEO
10 -