Express js: The Ultimate Beginner's Guide to Learn Express js Step by Step 2020 (2st Edition)


Download 316.23 Kb.
Pdf ko'rish
bet1/4
Sana15.08.2023
Hajmi316.23 Kb.
#1667262
  1   2   3   4
Bog'liq
Express JS




Express.js
he Ultimate Beginner's Guide to Learn Express.js Programming Step
by Step
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
By Max Beerbohm & Moaml Mohmmed


Memlnc.com
 
2
nd
Edition
 
 


 
"Programming isn't about what you know; it's about what you
can 
figure out
.”
Chris Pine


Introduction
Node.js
Express
MySQL
Install Node.js
Build the project
Install the project requirements
Chapter One
Routing links in Express
Create a blog master page
How does HTTP work?
Learn about the language of templates Jade
Create a blog page
Chapter II
Create system users
Create a New Account and Login page
The SHA-1 hashing algorithm
sign in
Chapter III
Manage sessions
Cookies
Chapter IV


Comments and finishing system
Comment available
Allow blogging and editing to blog manager
Clean the code
Improve your blog's appearance


Introduction
This is a series of tutorials for beginners with web development, aimed at
teaching the use of the Node.js environment and the Express framework by
building an integrated blog that allows writers to post posts and allows
visitors to create accounts and comment on posts. This series will not only
explain Express, but will provide an explanation (hopefully thorough) for
many of the concepts related to server-side web development, where we
will address the installation of MySQL server with an explanation of its use
in Node.js in addition to the mechanism HTTP protocol, user management
system and session creation, at the end of the series we will look at
performance and security improvement topics before publishing the project
on the web. At the end of this series, the learner should be able to handle
the Node.js environment easily and can create servers and databases and
create programs that connect these parts. If you come from the world of
PHP, this series will also suit you.


Node.js
You may have heard of Node.js before, but it is still somewhat ambiguous,
especially among Arab developers. The reason may be a lack of willingness
to change or difficulty in securing hosting of its projects compared to
hosting PHP projects or other reasons. Node.js is a development
environment that allows us to write and execute programs using JavaScript,
a language that until recently was locked into the browser; but it is no
longer the same but is used to write web projects, desktop applications, and
even terminal applications, perhaps thanks to Node.js itself. If you've used
PHP with Apache to create a site before, Node.js can do the same and more,
in a simpler, more organized and time-saving way.


Express
Express is perhaps the most important component of our project, so most of
our explanation will be focused. Express is a web project framework that
works in the Node.js environment.For Node.js, Laravel corresponds to PHP,
albeit very different from the idea behind it. Express adheres to the Node.js
philosophy of splitting large projects into Modules, in Express itself you
will not find modules dealing with databases or managing sessions,
password protection, etc. You have to get used to the fact that everything in
Node.js is a standalone module that can be imported and used with other
modules to get a project that is easy to develop and maintain without
dependence On a huge component of a single developer, the fate of its
development may be neglected In the future.
Express manages and directs links only, and can be expanded using so-
called "middleware" that are somewhat similar to the browser extensions
you use.It adds more features to the main function of Express.For example,
you will find a proxy that saves sessions using cookies And another
temporarily stores query results to speed up server response ...
It should be noted that Express is not the only framework available at
Node.js, but it may be the months for its extreme simplicity and excellent
structure. The future looks promising for projects like Koa that take
advantage of features coming to future versions of JavaScript to further
improve code writing. Koa's development is supervised by the express
development team itself.


MySQL
We will use the famous SQL database language (MySQL-flavored jazz) to
store posts, comments, and user information. If you don't know much about
SQL, that's fine, because it's very easy to create and it looks like real
English sentences!



Download 316.23 Kb.

Do'stlaringiz bilan baham:
  1   2   3   4




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling