No history yet

Web Application Basics

What Is a Web App?

A web application is a program that lives on a remote computer, called a server, and you use it through your web browser. You don't need to install anything on your computer to use it. If you've used a food delivery website or made an online reservation for a restaurant, you've used a web app.

Think about the difference between a microwave oven you buy and keep in your kitchen versus ordering food from a restaurant. The microwave is like traditional software. You buy it, bring it home, and install it. It only works on that one appliance.

A web app is like the restaurant. The kitchen, with all its tools and ingredients, is miles away. You just use a menu (your web browser) to tell them what you want, and they send the finished meal back to you. The app isn't stored on your device; you're just accessing it over the internet.

FeatureTraditional Software (like a Microwave)Web Application (like a Restaurant)
InstallationMust be installed on your computer.Nothing to install. Access via browser.
UpdatesYou must download and install updates.Updates happen automatically on the server.
AccessOnly on the device where it's installed.From any device with a browser and internet.
Data StorageFiles are saved on your computer.Data is stored remotely on the server.

The Client and the Server

Web applications work using a simple but powerful concept called the client-server model. It's the foundation of the entire internet.

The Client is your web browser. It's the customer in the restaurant. Its job is to ask for things.

The Server is a powerful computer that stores the web app's data and code. It's the restaurant's kitchen. Its job is to receive requests, do the work, and provide a response.

When you type a website address into your browser, you're sending a request from your client to the server. The server finds the right information (like the restaurant's menu) and sends it back to your browser to display. This back-and-forth conversation is managed by a set of rules, or a protocol, called or HTTPS.

The Language of Computers

To build a web app, we need to give the server instructions. We do this through programming. While we won't write any code just yet, let's learn three core concepts that are part of every programming language.

Variable

noun

A container for storing a piece of information that can change. Think of it as a labeled jar in a pantry.

Imagine you're managing a cafe. You might have a cup labeled "Customer's Drink Order" or a notepad entry for "Total Price". These are variables. They hold information that you need to track. In programming, we can create a variable called order and put the value "Latte" inside it. Later, we can change that value to "Espresso" if the customer changes their mind.

The information we put into variables comes in different flavors, called data types. For now, we only need to know three basic ones.

Data TypeDescriptionFood & Beverage Example
StringA piece of text. Always wrapped in quotes."Espresso" or "Table for two"
NumberA numerical value. Used for calculations.2 (for two coffees) or 14.50 (for the price)
BooleanA simple true or false value.isPaid could be true or false

Finally, the most important part of programming is logic. Computers are not smart; they only do exactly what we tell them to do. The most common way to give instructions is with a simple "if-then" rule, known as an in programming.

It works just like it sounds.

IF a customer is over 21, THEN they can order a beer. ELSE (otherwise), offer them a soda.

// This is how that logic looks in a simplified form

IF (customerAge > 20) {
  serveBeer();
} ELSE {
  serveSoda();
}

This simple structure is how web apps make decisions, like showing you a welcome message if you're a new user or an error if your password is wrong. By combining variables, data types, and conditional logic, we can build the rules for any process, whether it's taking a dinner reservation or managing inventory for a cafe.

Quiz Questions 1/4

Based on the text's analogy, which of the following is most like a traditional software program that you install on your computer?

Quiz Questions 2/4

In the client-server model, what is the role of your web browser?