Module 03

Backend Development

The engine room of the web. While frontend is about presentation, backend is about logic, security, and data management. Learn what happens behind the scenes.

01 What is Backend?

The backend is the part of the website that the user never sees but always relies on. If a website is a car, the frontend is the dashboard and steering wheel, while the backend is the engine, fuel tank, and transmission.

Core Responsibilities

  • Server-Side Logic: Calculations, rules, and decision-making.
  • Data Handling: Saving user info, retrieving products, processing payments.
  • Security: ensuring only authorized users access certain data.
02 Backend Technologies Overview

There are many languages for backend (Python, Java, PHP), but in this Full Stack course, we focus on Node.js.

Node.js

Allows developers to run JavaScript on the server. This means you can use the same language for both frontend and backend.

APIs (REST)

Application Programming Interfaces are the bridges that allow the frontend to talk to the backend engine.

Databases

The digital filing cabinets. We will explore SQL (structured tables) and NoSQL (flexible documents).

03 Authentication Concept

How does a server know who you are? Authentication is the process of verifying identity. It usually involves three steps:

  1. Registration: User sends credentials (username/password). The server hashes (encrypts) the password and stores it.
  2. Login: User sends credentials again. Server checks if they match the stored hash.
  3. Token Issue: If matched, the server gives the user a temporary "ID badge" (Token/Cookie) to access private routes.
04 Backend in Real Life

Let's trace a real-world interaction: Buying a Ticket.

1. The Request

Frontend sends a request: "Buy Ticket ID #55" along with the user's Token.

2. The Logic

Backend checks: Is the token valid? Is the ticket available? Does the user have funds?

3. The Response

If all checks pass, Backend subtracts funds, saves the ticket to the DB, and sends "Success" back to Frontend.

05 External Learning Resources

Recommended videos to visualize these abstract concepts:

Module Summary

You now understand that the backend is the brain of the application. It listens for requests via APIs, processes logic using languages like Node.js, and securely manages data in databases. It is the foundation of any dynamic web application.