WEBVTT

00:00.000 --> 00:05.000
Introduction to Backend Basics

00:05.000 --> 00:11.000
In this video, you will understand the role of servers, databases, and applications.

00:11.000 --> 00:16.000
Identify Node and Express JavaScript as Core Backend Technologies.

00:16.000 --> 00:23.000
Create and run a simple Express JavaScript Server.

00:23.000 --> 00:27.000
What is the Backend?

00:27.000 --> 00:31.000
The back end of a web application is the server side system.

00:31.000 --> 00:38.000
It processes requests, manages data, and connects the user interface with stored information.

00:38.000 --> 00:43.000
Unlike the front end, which focuses on design and user interaction,

00:43.000 --> 00:48.000
the back end performs logical operations that make the application work.

00:48.000 --> 00:55.000
A typical back end system includes three key components, server, receives and processes requests,

00:55.000 --> 00:59.000
database, stores, and organizes information.

00:59.000 --> 01:05.000
Application links the server and database.

01:05.000 --> 01:08.000
Backend tools

01:08.000 --> 01:14.000
Modern back end development often uses Node.js and Express.js.

01:14.000 --> 01:19.000
Node.js runs JavaScript code on the server.

01:19.000 --> 01:24.000
Express.js is a framework that helps organize the server and manage routes.

01:24.000 --> 01:32.000
Together, they allow developers to build scalable, efficient, and reliable web applications.

01:32.000 --> 01:34.000
Creating a simple server

01:34.000 --> 01:41.000
Now, let's learn how to set up a basic back end server using Node.js and Express.js.

01:41.000 --> 01:46.000
First, open command prompt and go to the folder where you want to build your project.

01:46.000 --> 01:52.000
Type, CDC colon users, ADMIN documents back end basics.

01:52.000 --> 01:58.000
Next, initialize a Node.js project by typing, NPM, init, dash, or y.

01:58.000 --> 02:02.000
This creates a package file that manages project settings.

02:02.000 --> 02:06.000
Now install Express. The framework will use to build our server.

02:06.000 --> 02:10.000
Type, NPM install Express.

02:10.000 --> 02:24.000
Open NotePad and create a new file called app.js.

02:24.000 --> 02:32.000
Inside, write the following code.

02:32.000 --> 02:38.000
This code sets up a server and creates one route that sends a message back to the browser.

02:38.000 --> 02:42.000
Back in command prompt type, nodeapp.js.

02:42.000 --> 02:45.000
If everything works, you will see.

02:45.000 --> 02:53.000
Server running at HTTP colon slash slash localhost colon 3000.

02:53.000 --> 03:01.000
Finally, open your browser and go to HTTP Arts.de localhost colon 3000.

03:01.000 --> 03:07.000
You should see the message. Welcome to our Express server, allowable web applications.

03:07.000 --> 03:15.000
The backend is the foundation of web applications, handling requests, and managing data.

03:15.000 --> 03:25.000
With Node.js and Express.js, developers can set up servers that respond to users, forming the first step in dynamic web development.

