Hiring Partners
Segilola Resources Operating LimitedTaviatech TechnologiesFCMBMTN NigeriaAdvans La Fayette Microfinance BankAboki AfricaFirst Bank of NigeriaOPay
← Understanding Web Applications · Lesson 3 of 4

Module Two

📖 Every lesson in this course is free to read right here, no account needed. Create a free account to track your progress, take the exam, and earn your certificate.
3
Module 2 · How Web Applications Work

⬅ Back to Course Outline

⚙️ Module 2 — How Web Applications Work

Understanding Web Applications · Beginner Level · 2026


1. Module Introduction

Welcome to Module 2. In Module 1, you learned what a web application is. You learned that it is a program that runs in your browser. You learned that you do not install it. You just open your browser and use it. You also learned the difference between a website and a web application.

Now we go deeper. In this module, you will learn how a web application actually works. You will learn what happens behind the scenes when you click a button or type in a box. You will meet new friends: the client, the server, and the database.

Imagine you order a pizza by phone. You speak to the person on the phone. They take your order to the kitchen. The kitchen cooks the pizza. They send it back to you. A web application works in a similar way. Your browser is like the phone. The server is like the kitchen. The database is like the store room where ingredients are kept.

You will also learn about the front end and the back end. The front end is what you see. The back end is what happens behind the scenes. Both are important.

Do not worry if these words sound new. Every word will be explained in very simple language. Every idea will come with examples from real life, school, home, and Nigeria. By the end of this module, you will understand how web applications work from the inside.

    YOUR LEARNING JOURNEY IN MODULE 2
    =================================

    [ Start ]
        |
        V
    What is a Client?
        |
        V
    What is a Server?
        |
        V
    What is a Database?
        |
        V
    Front End vs Back End
        |
        V
    How a Request Travels
        |
        V
    The Response Comes Back
        |
        V
    [ You understand how web applications work! ]
    

Summary of the Introduction

This module teaches you how web applications work. You will learn about the client, the server, the database, the front end, and the back end. You will also learn how a request travels from your browser to the server and back.


2. Learning Objectives

By the end of this module, you will be able to:

  1. Explain what a client is in your own words.
  2. Explain what a server is and what it does.
  3. Explain what a database is and why it matters.
  4. Describe the difference between the front end and the back end.
  5. Describe how a request travels from your browser to the server.
  6. Describe how a response comes back to your browser.
  7. Draw a simple diagram showing how a web application works.
  8. Give examples of clients, servers, and databases in real life.
  9. Explain what an IP address and a URL are in simple words.
  10. Feel confident and curious to continue to Module 3.

Summary of Learning Objectives

You will learn the main parts of a web application: client, server, database, front end, and back end. You will also learn how requests and responses travel.


3. Warm-up Story — Chidi and the Magic Restaurant

Chidi is a 12-year-old boy who lives in Abuja. One Saturday, his mother took him to a new restaurant. It was called "The Magic Kitchen."

When they sat down, there was no waiter. Instead, there was a small screen on the table. Chidi touched it. A menu appeared. He chose jollof rice and chicken. He tapped "Order."

A message appeared: "Your order has been received. Your food will arrive in 10 minutes."

Chidi was amazed. "How did the kitchen know what I ordered, Mama?"

His mother smiled. "The screen sent your order to the kitchen. The kitchen received it and started cooking. Then they will bring it to you."

"But how did the screen talk to the kitchen?"

"There is a small computer in the kitchen," his mother said. "It receives orders from all the screens. It tells the cooks what to make. It also keeps a record of every order."

Chidi thought for a moment. "So the screen is like the browser. The kitchen computer is like the server. And the record book is like the database?"

His mother laughed. "Chidi, you just described a web application!"

From that day, Chidi understood. When he uses a web application, his browser sends a request. The server receives it and does something. The database stores the information. Then the server sends a response back to his browser.

    CHIDI'S MAGIC RESTAURANT
    ========================

    [ Chidi taps screen ]
              |
              V
    [ Order sent to kitchen ]
              |
              V
    [ Kitchen computer receives it ]
              |
              V
    [ Record book stores it ]
              |
              V
    [ Cook prepares food ]
              |
              V
    [ Food brought to Chidi ]

    This is how a web application works!
    

Summary of the Warm-up Story

Chidi learned that the screen (browser) sends a request to the kitchen (server). The record book (database) stores information. Then the server sends a response back. This story introduces the whole module.


4. Main Lessons

In this section, you will go through 12 short lessons. Each lesson teaches one big idea. Each lesson ends with a mini summary. Read slowly. Think about the examples. Ask questions. That is how you learn.

Lesson 1 — What is a Client?

Definition

A client is the device or program that asks for information. In a web application, the client is usually your browser. It is the part that you see and use.

Why it is important

The client is the starting point. Without a client, there is no request. No request means no response. The client is what you use to talk to the web application.

Simple explanation

Think of a customer in a shop. The customer asks for something. The shopkeeper gives it. The customer is the client. Your browser is the client when you use a web application.

Real-life example

When you open Chrome and go to Gmail, Chrome is the client. It asks Gmail for your inbox. Gmail sends it back.

School example

When you use a school result portal, your browser is the client. It asks the school's computer for your results.

Home example

When you watch YouTube on your phone, your phone's browser is the client. It asks YouTube for the video.

Nigerian example

When you use a bank web application on your laptop, your laptop's browser is the client. It asks the bank's server for your balance.

Illustration

    CLIENT IN ACTION
    ================

    [ Client ] --> [ Asks for something ]

    Examples of clients:
      - Chrome browser
      - Firefox browser
      - Safari browser
      - Edge browser
      - A phone's built-in browser
        

Mini summary

A client is the device or program that asks for information. In a web application, the client is usually your browser.


Lesson 2 — What is a Server?

Definition

A server is a computer that answers requests. It waits for clients to ask for something. When a request comes, the server finds the answer and sends it back.

Why it is important

The server is the brain of the web application. It holds the program. It processes requests. It sends responses. Without a server, there is no web application.

Simple explanation

Think of a library. You ask the librarian for a book. The librarian finds it and gives it to you. The librarian is like a server. The library building is like the server computer.

Real-life example

When you open Gmail, your browser sends a request to a Google server. That server finds your emails and sends them back to you.

School example

When you check your results online, the school's server finds your records and sends them to your browser.

Home example

When you order food online, the restaurant's server receives your order and sends it to the kitchen.

Nigerian example

When you use a Nigerian bank's web application, the bank's server in Lagos or Abuja receives your request and sends your balance.

Illustration

    SERVER IN ACTION
    ================

    [ Server ] --> [ Waits for requests ]

    When a request arrives:
      1. Server receives it
      2. Server finds the answer
      3. Server sends the response

    Servers run all day and all night.
        

Mini summary

A server is a computer that answers requests. It holds the program and sends responses back to the client.


Lesson 3 — What is a Database?

Definition

A database is a special place where information is stored. It keeps data safe and organized. Servers use databases to find and save information.

Why it is important

Without a database, the server would forget everything. It would not remember your account, your messages, or your orders. The database is the memory of the web application.

Simple explanation

Think of a school file cabinet. Each student has a file. The file holds the student's name, class, and grades. A database is like that file cabinet, but on a computer.

Real-life example

When you log into Gmail, the server looks in its database for your account. It finds your emails and sends them to you.

School example

A school's result portal uses a database. It stores every student's name, class, and scores.

Home example

A family budget app stores your expenses in a database. It remembers what you spent last month.

Nigerian example

When you send money using a bank web application, the bank's database records the transaction. It remembers who sent money to whom.

Illustration

    DATABASE IN ACTION
    ==================

    [ Database ]

    | Name     | Class | Score |
    |----------|-------|-------|
    | Ngozi    | JSS 2 | 85    |
    | Chidi    | JSS 3 | 78    |
    | Amina    | JSS 1 | 92    |

    The database stores information in tables like this.
        

Mini summary

A database is where information is stored. It is the memory of a web application. Servers use it to find and save data.


Lesson 4 — Client, Server, and Database Together

Definition

A web application has three main parts: the client, the server, and the database. They work together like a team.

Why it is important

Understanding how they work together helps you see the full picture. It also helps you understand what happens when you click a button.

Simple explanation

Think of a restaurant again. You (the client) give your order to the waiter. The waiter (the server) takes it to the kitchen. The kitchen uses ingredients from the store room (the database). Then the food comes back to you.

The Three Parts

  • Client — asks for something
  • Server — receives the request, processes it, and sends back an answer
  • Database — stores the information the server needs

Real-life example

When you log into Facebook, your browser (client) asks for your profile. The Facebook server receives the request. It looks in the database for your information. Then it sends it back to your browser.

School example

When you check your results online, your browser (client) asks the school's server. The server looks in the database for your scores. Then it sends them back.

Home example

When you use a shopping web application, your browser asks the server. The server looks in the database for the product. Then it shows it to you.

Nigerian example

When you check your bank balance, your browser asks the bank's server. The server looks in the database for your account. Then it sends your balance.

Illustration

    CLIENT, SERVER, DATABASE
    ========================

    [ Client ] --> [ Server ] --> [ Database ]
         ^              |              |
         |              |              |
         +--------------+--------------+
                Response comes back

    Client asks.
    Server processes.
    Database stores.
        

Mini summary

The client, server, and database work together. The client asks. The server processes. The database stores. Together they form a web application.


Lesson 5 — What is the Front End?

Definition

The front end is the part of a web application that you see and interact with. It includes the buttons, boxes, colours, and text on the screen.

Why it is important

The front end is what users see first. If it is clear and beautiful, users enjoy using the app. If it is messy, users get confused.

Simple explanation

Think of a restaurant. The front end is the dining area — the tables, chairs, menus, and the way the place looks. It is what customers see when they walk in.

What the Front End Includes

  • Buttons
  • Text boxes
  • Images
  • Colours and fonts
  • Layout (where things are placed)
  • Menus and navigation

Real-life example

When you open Gmail, the front end is the inbox you see — the list of emails, the buttons, and the search bar.

School example

When you check results online, the front end is the page where you type your exam number and click "Check".

Home example

When you watch YouTube, the front end is the video page — the play button, the comments, and the like button.

Nigerian example

When you shop on Jumia, the front end is the page with products, prices, and the "Add to Cart" button.

Illustration

    FRONT END EXAMPLE
    =================

    +---------------------------------------+
    |  [ Search box ]  [ Search button ]    |
    |                                       |
    |  [ Product image ]  ₦5,000            |
    |  [ Add to Cart ]                      |
    |                                       |
    |  [ Checkout ]                         |
    +---------------------------------------+

    This is what the user sees = FRONT END
        

Mini summary

The front end is what you see and interact with. It includes buttons, boxes, images, and layout.


Lesson 6 — What is the Back End?

Definition

The back end is the part of a web application that works behind the scenes. It includes the server, the database, and the programs that make everything work.

Why it is important

The back end does the hard work. It processes requests, saves information, and sends responses. Without the back end, the front end would do nothing.

Simple explanation

Think of a restaurant. The back end is the kitchen — the cooks, the recipes, the ingredients, and the work that happens out of sight. Customers do not see it, but it makes the food.

What the Back End Includes

  • The server
  • The database
  • The program that processes requests
  • Security and login checks
  • Records and reports

Real-life example

When you send an email in Gmail, the back end receives it, stores it in the database, and sends it to the receiver.

School example

When you submit homework on Google Classroom, the back end stores it, marks it as submitted, and shows it to the teacher.

Home example

When you pay a bill online, the back end checks your account and records the payment.

Nigerian example

When you send money using a bank web application, the back end checks your balance, subtracts the amount, and adds it to the receiver's account.

Illustration

    BACK END EXAMPLE
    ================

    [ User clicks "Pay" ]
              |
              V
    [ Server receives request ]
              |
              V
    [ Server checks account in database ]
              |
              V
    [ Server updates balance ]
              |
              V
    [ Server sends confirmation ]
              |
              V
    [ User sees "Payment successful" ]

    All of this happens behind the scenes = BACK END
        

Mini summary

The back end is what happens behind the scenes. It includes the server, the database, and the programs that process requests.


Lesson 7 — Front End vs Back End

Definition

The front end is what the user sees. The back end is what happens behind the scenes. Both are needed for a web application to work.

Why it is important

Knowing the difference helps you understand how a web application is built. It also helps you decide what part you might want to work on in the future.

Simple explanation

Think of a car. The front end is the dashboard, the steering wheel, and the seats. The back end is the engine, the fuel system, and the wheels. You see the front end. The back end makes it move.

Comparison Table: Front End vs Back End

Front End Back End
What the user sees What happens behind the scenes
Buttons, boxes, colours Server, database, programs
Runs in the browser Runs on the server
Example: Gmail inbox Example: Gmail's email storage

Real-life example

On Facebook, the front end is your news feed. The back end stores your posts, friends, and messages.

School example

On a result portal, the front end is the form you fill. The back end looks up your scores in the database.

Home example

In online shopping, the front end is the product page. The back end checks stock and processes payment.

Nigerian example

On a bank web application, the front end is the page where you type the amount. The back end moves the money.

Illustration

    FRONT END vs BACK END
    =====================

    FRONT END:   [ What you see ]
                      |
                      V
    BACK END:    [ What happens behind ]

    Front end:    Buttons, colours, text
    Back end:     Server, database, logic
        

Mini summary

The front end is what you see. The back end is what happens behind the scenes. Both are needed for a web application to work.


Lesson 8 — What is a Request?

Definition

A request is a message sent by the client to the server. It asks for something. For example, it might ask for a webpage, a photo, or a piece of information.

Why it is important

Every action you take in a web application starts with a request. Without requests, nothing would happen.

Simple explanation

Think of raising your hand in class. You are asking the teacher for something. That is a request. In a web application, your browser raises its hand by sending a request.

Examples of Requests

  • Opening a webpage
  • Clicking a button
  • Typing in a search box
  • Logging in
  • Submitting a form

Real-life example

When you type "jollof rice" in YouTube's search box and press Enter, your browser sends a request to YouTube's server.

School example

When you click "Check Results" on a school portal, your browser sends a request to the school's server.

Home example

When you tap "Buy" in an online shop, your browser sends a request to the shop's server.

Nigerian example

When you type your account number in a bank web application and click "Check Balance", your browser sends a request to the bank's server.

Illustration

    SENDING A REQUEST
    =================

    [ You click a button ]
              |
              V
    [ Browser builds a request ]
              |
              V
    [ Request travels through internet ]
              |
              V
    [ Server receives the request ]
        

Mini summary

A request is a message from the client to the server. It asks for something. Every action you take sends a request.


Lesson 9 — What is a Response?

Definition

A response is the message the server sends back to the client. It contains the answer to the request.

Why it is important

Without a response, the client would never know the answer. The response is what makes the web application useful.

Simple explanation

Think of asking a question in class. The teacher gives an answer. That answer is like a response.

Examples of Responses

  • A webpage appears on your screen.
  • A list of search results appears.
  • A message says "Login successful."
  • A payment confirmation appears.
  • An error message appears.

Real-life example

When you search on Google, the response is the list of results that appear.

School example

When you check your results, the response is your scores appearing on the screen.

Home example

When you order food online, the response is a message saying "Order confirmed."

Nigerian example

When you send money using a bank web application, the response is a message saying "Transfer successful."

Illustration

    RECEIVING A RESPONSE
    ====================

    [ Server finds the answer ]
              |
              V
    [ Server builds a response ]
              |
              V
    [ Response travels back ]
              |
              V
    [ Browser shows it to you ]
        

Mini summary

A response is the answer the server sends back to the client. It shows you what you asked for.


Lesson 10 — How a Request Travels

Definition

A request travels from your browser to the server through the internet. The journey has several steps.

Why it is important

Knowing how a request travels helps you understand why some web applications are slow. It also helps you appreciate what happens when you click a button.

Simple explanation

Think of sending a letter. You write it, put it in an envelope, and drop it in a post box. The postman carries it to the post office. The post office sends it to the right address. A request travels the same way.

Steps in the Journey

  1. You type a web address or click a button.
  2. Your browser builds a request.
  3. The request travels through the internet.
  4. It finds the server using its IP address.
  5. The server receives the request.
  6. The server processes it.
  7. The server prepares a response.
  8. The response travels back.
  9. Your browser shows the result.

Real-life example

When you open YouTube, your request travels from your phone to a Google server. The server finds the video and sends it back.

School example

When you check results online, your request travels from your laptop to the school's server. The server finds your scores and sends them back.

Home example

When you pay a bill, your request travels to the bank's server. The bank processes the payment and sends a confirmation.

Nigerian example

When you use a Nigerian bank web application, your request may travel from Kano to Lagos in less than a second. The internet makes this possible.

Illustration

    HOW A REQUEST TRAVELS
    =====================

    [ You click ]
          |
          V
    [ Browser builds request ]
          |
          V
    [ Internet ]
          |
          V
    [ Server receives ]
          |
          V
    [ Server processes ]
          |
          V
    [ Response sent back ]
          |
          V
    [ Browser shows result ]
        

Mini summary

A request travels from your browser through the internet to the server. The server processes it and sends a response back.


Lesson 11 — What is a URL and an IP Address?

Definition

A URL is the web address you type in your browser. For example, "gmail.com". An IP address is a set of numbers that identifies a computer on the internet. For example, "142.250.190.46".

Why it is important

URLs are easy for humans to remember. IP addresses are what computers use. The URL is like a name. The IP address is like a house number.

Simple explanation

Think of a phone contact. You save "Mama" as a name. But the phone actually uses a phone number to call her. The name is like a URL. The number is like an IP address.

Real-life example

You type "youtube.com" in your browser. That is a URL. The browser finds YouTube's IP address and connects to it.

School example

Your school portal may have a URL like "results.myschool.edu.ng". The browser finds the school's server IP address.

Home example

"google.com" is a URL. It is easier to remember than a long IP address.

Nigerian example

"jumia.com.ng" is a URL. The browser finds Jumia's server IP address.

Illustration

    URL vs IP ADDRESS
    =================

    URL:  www.gmail.com  (easy for humans)

    IP:   142.250.190.46  (used by computers)

    The browser looks up the IP address for the URL.
        

Mini summary

A URL is a web address you type. An IP address is a set of numbers that identifies a computer. The browser uses both to connect you.


Lesson 12 — Why Some Web Applications Are Slow

Definition

A web application is slow when the request or response takes a long time. Many things can cause this.

Why it is important

Understanding slowness helps you be patient and helps developers fix problems. It also helps you choose better networks.

Simple explanation

Think of a traffic jam. The car is fine. The road is fine. But too many cars slow everything down. The internet can have traffic jams too.

Common Causes of Slow Web Applications

  • Slow internet connection
  • Many people using the app at the same time
  • A slow server
  • A large amount of data to send
  • Far distance between client and server
  • Problems with the database

Real-life example

When many people watch a live football match online, the app may slow down. The server is busy.

School example

When all students check results on the same day, the portal may be slow. Too many requests at once.

Home example

When your data is weak, YouTube videos load slowly.

Nigerian example

When there is a network problem, bank web applications may be slow. Customers must wait.

Illustration

    WHY WEB APPLICATIONS ARE SLOW
    =============================

    [ Many users ] --> [ Server busy ] --> [ Slow response ]

    [ Weak network ] --> [ Slow request ] --> [ Slow response ]
        

Mini summary

Web applications can be slow for many reasons: weak network, busy server, large data, or long distance. Patience and better networks help.

Summary of Main Lessons

You have now learned the core ideas of Module 2: the client, the server, the database, the front end, the back end, requests, responses, how requests travel, URLs, IP addresses, and why web applications can be slow.


5. Key Vocabulary

Word Simple Definition
Client The device or program that asks for information.
Server A computer that answers requests.
Database A place where information is stored.
Front end The part of a web application you see.
Back end The part that works behind the scenes.
Request A message from the client asking for something.
Response The answer the server sends back.
URL A web address you type in the browser.
IP address A set of numbers that identifies a computer.
Browser A program that shows web pages.
Internet The global network that connects computers.
Network A group of connected computers.
Traffic Many requests happening at the same time.
Processing When the server works on a request.
Data Information stored or sent.

Summary of Key Vocabulary

These words will help you understand how web applications work. Use them often so they become easy.


6. Important Concepts

Concept 1 — Every Web Application Has a Client and a Server

The client asks. The server answers. Without both, the web application cannot work.

Concept 2 — The Database is the Memory

The database stores information. Without it, the server would forget everything.

Concept 3 — Front End and Back End Work Together

The front end is what you see. The back end is what happens behind the scenes. Both are needed.

Concept 4 — Requests and Responses Travel

When you click, a request travels. When the server answers, a response comes back.

Concept 5 — The Internet Connects Everything

URLs and IP addresses help your browser find the right server. The internet makes it all possible.

Summary of Important Concepts

These five concepts are the heart of Module 2. Read them again before moving on.


7. Step-by-step Explanations

Step-by-step: What Happens When You Click a Button

  1. You click a button. Your browser notices.
  2. Browser builds a request. It includes what you asked for.
  3. The request travels through the internet. It uses the URL and IP address.
  4. The server receives the request. It reads what you asked for.
  5. The server processes the request. It may look in the database.
  6. The server builds a response. It includes the answer.
  7. The response travels back. It goes through the internet.
  8. Your browser shows the result. You see the answer on your screen.
    WHAT HAPPENS WHEN YOU CLICK
    ===========================

    [ You click ]
          |
          V
    [ Browser builds request ]
          |
          V
    [ Request travels ]
          |
          V
    [ Server receives ]
          |
          V
    [ Server processes ]
          |
          V
    [ Server builds response ]
          |
          V
    [ Response travels back ]
          |
          V
    [ Browser shows result ]
    

Step-by-step: How to Draw a Web Application Diagram

  1. Draw the client. Use a rectangle. Label it "Client (Browser)".
  2. Draw the server. Use a rectangle. Label it "Server".
  3. Draw the database. Use a cylinder or rectangle. Label it "Database".
  4. Draw arrows. One from client to server (request). One from server to client (response). One from server to database and back.
  5. Label the arrows. "Request", "Response", "Query", "Data".
  6. Add a title. "How a Web Application Works".
    SIMPLE WEB APPLICATION DIAGRAM
    ==============================

    [ Client ] --request--> [ Server ] --query--> [ Database ]
        ^                       |                       |
        |                       |                       |
        +-------response--------+<-------data-----------+
    

Summary of Step-by-step Explanations

Clicking a button and drawing a diagram both follow clear steps. Following steps makes it easy.


8. Real-life Examples

Example 1 — Online Banking

Your browser (client) asks the bank's server for your balance. The server looks in the database and sends your balance back.

Example 2 — Online Shopping

Your browser asks the shop's server for a product. The server checks the database and sends the product details.

Example 3 — Video Streaming

Your browser asks YouTube's server for a video. The server sends the video back.

Example 4 — Email

Your browser asks Gmail's server for your messages. The server looks in the database and sends them back.

Example 5 — Online Learning

Your browser asks Google Classroom's server for your assignments. The server looks in the database and sends them.

Summary of Real-life Examples

Client, server, and database work together in banking, shopping, videos, email, and learning.


9. Nigerian Examples

Example 1 — Nigerian Banks

Banks like GTBank, Zenith, and Access have web applications. Your browser asks the bank's server. The server looks in the database and sends your balance.

Example 2 — Jumia and Konga

When you shop on Jumia, your browser asks Jumia's server. The server checks the database for stock and sends the product details.

Example 3 — Paystack and Flutterwave

When you pay online with Paystack, your browser sends a request. Paystack's server processes it and confirms the payment.

Example 4 — Nigerian University Portals

When you check results, your browser asks the school's server. The server looks in the database for your scores.

Example 5 — Bolt and Uber

When you book a ride, your browser asks the server for available drivers. The server checks the database and sends a list.

Summary of Nigerian Examples

Nigeria has many examples of client, server, and database working together in banking, shopping, payments, education, and transport.


10. Fun Examples Children Can Relate To

Example 1 — Online Games

When you play an online game, your browser is the client. The game's server keeps track of scores and sends updates.

Example 2 — Online Quizzes

When you take a quiz, your browser sends your answers. The server marks them and sends your score.

Example 3 — Chat with Friends

When you send a message on WhatsApp Web, your browser sends it. The server stores it in the database. Your friend's browser receives it.

Example 4 — Drawing Tools

When you draw on Canva, your browser sends your drawing to the server. The server saves it in the database.

Example 5 — Storybooks Online

When you read a story online, your browser asks the server for the next page. The server sends it.

Summary of Fun Examples

Client, server, and database work together in online games, quizzes, chats, drawing tools, and storybooks.


11. Everyday Examples

Situation Client Server Database
Checking email Your browser Gmail server Gmail database
Watching videos Your browser YouTube server YouTube database
Paying a bill Your browser Bank server Bank database
Buying airtime Your browser Telecom server Telecom database
Checking results Your browser School server School database

Summary of Everyday Examples

Even simple daily activities use client, server, and database. Now you can see them everywhere.


12. Parent Tips

  1. Explain with examples. When you use a web application, tell your child: "The browser is the client, and the website's computer is the server."
  2. Use everyday analogies. Compare the client to a customer, the server to a waiter, and the database to a store room.
  3. Draw together. Draw a simple diagram of client, server, and database with your child.
  4. Ask questions. "What do you think happens when you click a button?"
  5. Show the browser. Point out the address bar and explain URLs.
  6. Discuss slowness. When the internet is slow, explain why.
  7. Praise curiosity. When your child asks how something works, praise them.
  8. Explore safely. Let your child use safe web applications and explain what happens.

Summary of Parent Tips

Parents can help children understand how web applications work by using simple examples and drawing together.


13. Interesting Facts

  1. The first web server was set up in 1990 by Tim Berners-Lee.
  2. Some servers handle millions of requests every second.
  3. The fastest data can travel across the world in less than a second.
  4. Some databases store billions of records.
  5. A single web page may require hundreds of requests to load.
  6. Some servers are as big as a room. Others are as small as a book.
  7. Most web applications use more than one server to handle many users.
  8. In Nigeria, most web applications are hosted on servers in other countries. Some are hosted locally.

Summary of Interesting Facts

Servers and databases are powerful. They make web applications possible.


14. Did You Know?

  • Did you know that the word "server" comes from the idea of a computer that "serves" requests?
  • Did you know that some web applications use many servers working together?
  • Did you know that a single database can hold information about millions of people?
  • Did you know that a URL is sometimes called a "web address"?
  • Did you know that an IP address is like a home address for a computer?
  • Did you know that some servers are owned by companies like Google, Amazon, and Microsoft?

Summary of Did You Know?

Servers, databases, URLs, and IP addresses are full of surprises. The more you learn, the more interesting they become.


15. Remember This

  • A client asks for information. Your browser is a client.
  • A server answers requests. It holds the program.
  • A database stores information. It is the memory of a web application.
  • The front end is what you see. The back end is what happens behind the scenes.
  • A request is a message from the client to the server.
  • A response is the answer the server sends back.
  • A URL is a web address. An IP address identifies a computer.
  • Requests travel through the internet to reach the server.
  • Web applications can be slow for many reasons.
  • Client, server, and database work together as a team.

Summary of Remember This

These ten points are the heart of Module 2. Read them again before moving on.


16. Common Mistakes

  1. Thinking the client and server are the same. They are different.
  2. Forgetting the database. Without it, the server forgets everything.
  3. Confusing front end and back end. Front end is what you see. Back end is behind the scenes.
  4. Thinking requests and responses are the same. A request asks. A response answers.
  5. Thinking URLs and IP addresses are the same. URLs are for humans. IP addresses are for computers.
  6. Blaming the browser when the network is slow. The problem may be the internet.
  7. Thinking one server handles everything. Many web applications use several servers.
  8. Ignoring security. Always use safe networks and strong passwords.

Summary of Common Mistakes

Avoiding these mistakes will make you better at understanding web applications than many adults.


17. Best Practices

  1. Learn the parts: client, server, database.
  2. Remember the difference between front end and back end.
  3. Think of requests and responses as questions and answers.
  4. Notice URLs when you visit websites.
  5. Be patient when web applications are slow.
  6. Use strong passwords for accounts.
  7. Log out after using a shared device.
  8. Draw diagrams to remember how things work.
  9. Ask questions when you are unsure.
  10. Keep learning about how the internet works.

Summary of Best Practices

These ten practices will help you understand and use web applications better.


18. ASCII Illustrations, Diagrams, Flowcharts, and Timelines

Diagram 1 — Client, Server, Database

    CLIENT, SERVER, DATABASE
    ========================

    [ Client ] --request--> [ Server ] --query--> [ Database ]
        ^                       |                       |
        |                       |                       |
        +-------response--------+<-------data-----------+
    

Diagram 2 — Front End vs Back End

    FRONT END vs BACK END
    =====================

    FRONT END:   [ What you see ]

    BACK END:    [ What happens behind ]
    

Diagram 3 — How a Request Travels

    HOW A REQUEST TRAVELS
    =====================

    [ You click ]
          |
          V
    [ Browser builds request ]
          |
          V
    [ Internet ]
          |
          V
    [ Server receives ]
          |
          V
    [ Server processes ]
          |
          V
    [ Response sent back ]
          |
          V
    [ Browser shows result ]
    

Diagram 4 — URL vs IP Address

    URL vs IP ADDRESS
    =================

    URL:  www.gmail.com  (easy for humans)

    IP:   142.250.190.46  (used by computers)
    

Diagram 5 — Why Web Applications Are Slow

    WHY WEB APPLICATIONS ARE SLOW
    =============================

    [ Many users ] --> [ Server busy ] --> [ Slow response ]

    [ Weak network ] --> [ Slow request ] --> [ Slow response ]
    

Diagram 6 — Simple Web Application Diagram

    SIMPLE WEB APPLICATION DIAGRAM
    ==============================

    [ Client ] --request--> [ Server ] --query--> [ Database ]
        ^                       |                       |
        |                       |                       |
        +-------response--------+<-------data-----------+
    

Summary of Illustrations

These diagrams help you see how web applications work. Draw them yourself to remember them better.


19. Comparison Tables

Table 1 — Client vs Server

Client Server
Asks for information Answers requests
Runs on your device Runs on a remote computer
Example: your browser Example: Gmail's computer
Many clients can talk to one server One server can serve many clients

Table 2 — Front End vs Back End

Front End Back End
What you see What happens behind
Buttons, colours, layout Server, database, logic
Runs in browser Runs on server
Example: inbox page Example: email storage

Table 3 — URL vs IP Address

URL IP Address
Easy for humans Used by computers
Example: gmail.com Example: 142.250.190.46
Contains words Contains numbers
You type it Browser finds it

Summary of Comparison Tables

Comparing ideas side by side helps you remember the differences clearly.


20. Summary After Every Lesson (Consolidated)

Lesson Main Idea
Lesson 1 The client is the device or program that asks for information.
Lesson 2 The server is the computer that answers requests.
Lesson 3 The database stores information. It is the memory.
Lesson 4 Client, server, and database work together as a team.
Lesson 5 The front end is what you see.
Lesson 6 The back end is what happens behind the scenes.
Lesson 7 Front end and back end are different. Both are needed.
Lesson 8 A request is a message from the client to the server.
Lesson 9 A response is the answer the server sends back.
Lesson 10 Requests travel from browser to server through the internet.
Lesson 11 A URL is a web address. An IP address identifies a computer.
Lesson 12 Web applications can be slow for many reasons.

21. End-of-Module Summary

Congratulations! You have completed Module 2. Let us review what you have learned.

You began by learning that a client is the device or program that asks for information. In a web application, the client is usually your browser.

You then learned that a server is a computer that answers requests. It waits for clients to ask for something and sends back an answer.

You discovered that a database is where information is stored. It is the memory of a web application.

You learned that the client, server, and database work together like a team. The client asks. The server processes. The database stores.

You explored the front end — what the user sees. And the back end — what happens behind the scenes. Both are needed.

You learned about requests and responses. A request is a message from the client. A response is the answer from the server.

You discovered how a request travels from your browser through the internet to the server and back.

You learned about URLs and IP addresses. A URL is a web address for humans. An IP address is for computers.

Finally, you learned why web applications can be slow and how to be patient.

    MODULE 2 SUMMARY MAP
    ====================

    [ Client ] --> [ Server ] --> [ Database ]
          |              |              |
          V              V              V
    [ Front End ]  [ Back End ]   [ Storage ]
          |              |              |
          V              V              V
    [ Request ] --> [ Processing ] --> [ Response ]
          |
          V
    [ You understand how web applications work! ]
    

Well done! You now understand how web applications work from the inside. In Module 3, you will learn the building blocks: HTML, CSS, and JavaScript.


22. Frequently Asked Questions (10 Questions)

Question 1: What is a client in the simplest words?

A client is the device or program that asks for information. In a web application, the client is usually your browser.

Question 2: What is a server?

A server is a computer that answers requests. It holds the program and sends back responses.

Question 3: What is a database?

A database is where information is stored. It is the memory of a web application.

Question 4: What is the front end?

The front end is the part of a web application you see and interact with.

Question 5: What is the back end?

The back end is the part that works behind the scenes. It includes the server, the database, and the programs.

Question 6: What is a request?

A request is a message from the client to the server. It asks for something.

Question 7: What is a response?

A response is the answer the server sends back to the client.

Question 8: What is a URL?

A URL is a web address you type in your browser. For example, gmail.com.

Question 9: What is an IP address?

An IP address is a set of numbers that identifies a computer on the internet.

Question 10: Why are web applications sometimes slow?

They can be slow because of weak network, busy servers, large data, or long distance between client and server.


23. Matching Exercises

Exercise 1 — Match the Word to the Meaning

Column A (Word) Column B (Meaning)
1. Client A. A computer that answers requests
2. Server B. The device that asks for information
3. Database C. What the user sees
4. Front end D. Where information is stored
5. Back end E. What happens behind the scenes

Answers: 1-B, 2-A, 3-D, 4-C, 5-E

Exercise 2 — Match the Term to Its Example

Column A (Term) Column B (Example)
1. Request A. gmail.com
2. Response B. "Login successful"
3. URL C. Clicking "Search"
4. IP address D. Chrome browser
5. Client E. 142.250.190.46

Answers: 1-C, 2-B, 3-A, 4-E, 5-D

Summary of Matching Exercises

Matching helps you connect words to meanings quickly.


24. Scenario-based Exercises

Scenario 1 — The Slow Result Portal

It is the day results are released. Many students log in at the same time. The portal becomes very slow.

Questions:

  1. Why is the portal slow?
  2. What part of the web application is busy?
  3. What can students do?

Scenario 2 — The Missing Email

A student sends an email. The receiver does not get it. The student checks again. The email is in the "Sent" folder.

Questions:

  1. Which part of the web application stored the email?
  2. Which part sends the email?
  3. What might have gone wrong?

Scenario 3 — The URL Confusion

A person types "gogle.com" instead of "google.com". The page does not load.

Questions:

  1. Why did the page not load?
  2. What should the person type instead?
  3. What does the browser do with a URL?

Summary of Scenario-based Exercises

These scenarios help you apply what you have learned to real situations.


25. Group Activity

Activity: Build a Web Application Diagram

Group size: 3–5 students

Time: 30 minutes

Materials: Paper, pencil, ruler

Instructions:

  1. Choose a web application (e.g., Gmail, YouTube, or a bank app).
  2. Draw the client, server, and database.
  3. Draw arrows for request, response, query, and data.
  4. Label each part.
  5. Present your diagram to the class.

Goal: To practise understanding how web applications work.


26. Individual Activity

Activity: My Web Application Journey

Time: 20 minutes

Materials: Notebook, pencil

Instructions:

  1. Choose one web application you use often.
  2. Write down what happens when you use it:
    • What do you click or type?
    • What does the app show you?
  3. Draw the client, server, and database for that app.
  4. Write a short paragraph explaining it in your own words.

Goal: To connect what you learned to a real web application.


27. Mini Project

Project: Design a Simple Web Application Model

Time: 1–2 hours

Materials: Paper, pencil, colour pencils

Instructions:

  1. Choose a simple web application idea (e.g., a class attendance app).
  2. Draw the front end — what the user will see.
  3. Draw the back end — the server and database.
  4. List what information the database will store.
  5. Describe what happens when a user clicks a button.
  6. Present your model to the class.

Goal: To practise designing a simple web application.


28. Practical Assignment

Assignment: Interview a Web Application User

Time: 1 week

Materials: Notebook, pencil

Instructions:

  1. Find someone who uses a web application often.
  2. Ask them these questions:
    • Which web application do you use most?
    • What do you use it for?
    • What happens when you click a button?
    • What do you think happens behind the scenes?
    • What problems do you have with it?
  3. Write a one-page report on what you learned.
  4. Draw a diagram of the client, server, and database for that app.

Goal: To connect what you learned to real users.


29. Key Takeaways

  1. The client is the device or program that asks for information.
  2. The server is a computer that answers requests.
  3. The database stores information. It is the memory.
  4. The front end is what you see. The back end is behind the scenes.
  5. A request is a message from the client to the server.
  6. A response is the answer the server sends back.
  7. A URL is a web address. An IP address identifies a computer.
  8. Requests travel through the internet to reach the server.
  9. Web applications can be slow for many reasons.
  10. Client, server, and database work together as a team.

30. Classroom Discussion Questions

  1. Why do you think web applications need a server?
  2. What would happen if there was no database?
  3. Can you give an example of a client, server, and database from your own life?
  4. What is the difference between the front end and the back end?
  5. Why do you think some web applications are slow?
  6. How does the internet help a request travel?
  7. Why do you think URLs are easier for humans than IP addresses?
  8. What is one part of a web application you would like to build?
  9. Why do you think servers run all day and all night?
  10. What did you enjoy most in this module?

31. Preparation for the Next Module

You have finished Module 2. Well done! Here is how to prepare for Module 3, which is all about Building Blocks of a Web Application.

  1. Review your key words. Make sure you can explain client, server, database, request, and response in your own words.
  2. Draw diagrams. Practice drawing the client, server, and database.
  3. Notice web applications. Continue noticing how they work in daily life.
  4. Think about building blocks. When you see a web page, ask: "What is this page made of?"
  5. Bring your curiosity. Module 3 will teach you about HTML, CSS, JavaScript, frameworks, APIs, and hosting.
    TRANSITION TO MODULE 3
    ======================

    [ Module 2: How Web Applications Work ]
              |
              V
    [ Module 3: Building Blocks of a Web Application ]
              |
              V
    [ You will learn: HTML, CSS, JavaScript,
      frameworks, APIs, and hosting ]
    

See you in Module 3. Keep thinking like a web application expert!


🏆 Get Certified

🔒

Earn this certificate

Every lesson is already free to read. Sign up, finish the lessons, pass the exam (₦2,000 or 20,000 coins), and get a verified certificate with your name on it.

🎓 Sign Up to Get Certified
🛠️ Practice Tools
Hands-on simulators & labs - subscription required.
→
🎯 Internship Tasks
Real-world tasks to build your portfolio - unlock them with a subscription.
→