MinTraq Originals • Functional

Full-Stack and Web Development: Foundations

Log in
MinTraq OriginalsFunctionalEarly career

Full-Stack and Web Development: Foundations

How the web works and how full-stack teams build it: front end, back end, databases, APIs, deployment and security basics, how work is done and how to start.

5 chapters 85 min total Read or listen
Team of developers working together on computers in a modern tech office

Chapters

  1. 1

    How the Web Works

    You use the web all day, but what actually happens when a page opens? Learn the short chain of lookups, requests and responses behind every website, so you can explain problems clearly and work confidently with developers.

    17 min read
  2. 2

    Front End: HTML, CSS and JavaScript

    Every web page you use is built from three layers: HTML for meaning, CSS for layout and JavaScript for behaviour. Learn what each one does, how to make pages that work for everyone on any screen, and what frameworks such as React really solve.

    17 min read
  3. 3

    Back End, Databases and APIs

    Behind every button you press, a server checks who you are, applies the rules and stores the result. This chapter shows you how routes, databases and REST APIs work together, with worked examples you can follow without writing a line of code.

    17 min read
  4. 4

    Deployment and Security Basics

    Working code is only useful once it reaches users safely and stays safe. Learn how teams use Git and pull requests, ship through automated pipelines, and apply the security and data protection basics every web developer is expected to know.

    17 min read
  5. 5

    How Full-Stack Teams Work and How to Start

    Knowing HTML or SQL is only half the job. This chapter shows you how real product teams turn ideas into shipped code, how to build a portfolio that proves your skills, and which roles and credentials can open the first door.

    17 min read
Free chapter
Listen to this chapter free
1
Page 1 of 5 · Chapter 1 of 5

How the Web Works

Diverse group of women working together in a modern office setting, fostering teamwork and creativity

Every time you open a web page, a short chain of events runs in about a second. Your browser looks up an address, sends a request, receives files and turns them into the page you see. Knowing that chain is useful even if you never write code. It helps you describe a problem precisely, ask a developer the right question and understand why a site is slow or down.

This chapter covers three ideas. First, what actually happens between typing an address and seeing a page. Second, the roles of browsers, servers and hosting. Third, how the front end and back end of an application divide the work and talk to each other. By the end you will be able to sketch how any website works.

1
Page 2 of 5 · Chapter 1 of 5

What happens when you open a page (DNS, HTTP, request and response)

How the Web Works

Businesswoman working on laptop with Android 6.0 Marshmallow webpage open

From a name to an address

Emma, a marketing coordinator at a charity in Manchester, types the charity's web address into her browser and waits. Nothing loads. Her first instinct is to message the developer: "the website is broken". If she knows the steps behind a page load, she can say which step failed.

Computers on the internet find each other by IP address, a number such as 192.0.2.172. People prefer names. The Domain Name System (DNS) works as the internet's address book. When you type a domain name, your browser asks a DNS resolver which IP address belongs to it.

Request and response

With the IP address in hand, the browser connects to the server and sends an HTTP request. The request states a method (GET to read, POST to send data), a path and some headers. The server sends back a response with a status code, headers and a body, usually HTML.

The HTTP standard groups status codes into five classes: 1xx informational, 2xx success, 3xx redirection, 4xx client error and 5xx server error. A 404 means nothing exists at that path. A 500 means the server failed.

  1. The browser reads the address and checks its cache.
  2. DNS turns the domain name into an IP address.
  3. The browser connects to the server, sets up a secure HTTPS connection and sends an HTTP request.
  4. The server replies with a status code and the HTML.
  5. The browser fetches the images, styles and scripts, then draws the page.

A worked example

Emma opens her browser's developer tools and checks the Network tab on a slow page. The DNS lookup took 30 milliseconds, the connection 50, the server took 900 to start replying and the download took 120. Total: 30 + 50 + 900 + 120 = 1,100 milliseconds. The server step is 900 of 1,100, about 82 per cent of the wait. Now she can tell the developer the server is slow, not DNS and not her Wi-Fi.

Common mistake: treating every failure as "the site is down". A DNS error, a 404 on one page and a 500 from the server are three different problems with different owners. Note the exact message and status code before you report anything.

Real case: Meta

On 4 October 2021, Facebook, Instagram and WhatsApp were unreachable for nearly six hours. Meta explained that a maintenance command took down its backbone network. Its DNS servers then withdrew the routes that told the rest of the internet where to find them. Cloudflare reported that DNS resolvers worldwide were handling about 30 times more queries than usual as apps kept retrying. The lesson: when DNS fails, everything behind it looks broken.

Knowledge check, included with a free account

Practical takeaway

When a page fails, ask which step failed: the lookup, the connection, the request or the response. The status code and the Network tab in your browser's developer tools usually tell you.

1
Page 3 of 5 · Chapter 1 of 5

Browsers, servers and hosting

How the Web Works

A focused software engineer working on a laptop in a server room, reflecting dedication in tech

What a browser does

A browser such as Chrome, Firefox, Safari or Edge is a client. It sends requests, receives files and turns them into a page. It parses the HTML into a tree of elements called the DOM, applies CSS to style it and runs JavaScript, which can change it. Then it lays the page out and paints it on screen. It also builds an accessibility tree so screen readers can use the page. The same files can look slightly different in different browsers, which is why developers test in more than one.

What servers and hosting are

A server is a computer that waits for requests and answers them. It runs software that listens for HTTP requests and returns files or generated pages. Hosting is where that server lives and who looks after it. The main options are:

  • Static hosting: serves fixed files such as HTML, CSS and images, with little to maintain.
  • Managed hosting: a provider runs the server for you, common for WordPress sites.
  • Cloud platforms such as AWS, Microsoft Azure and Google Cloud: you rent computing power and scale it up or down.
  • Content delivery networks (CDNs): copies of your files on servers around the world, so each visitor downloads from one nearby.

Many organisations combine these. A company might keep its marketing site on static hosting, run its customer portal on a cloud platform and put a CDN in front of both. The choice depends on how often the site changes, how many people use it and who in the team can maintain it.

A worked example: page weight and distance

Daniel, an operations analyst at a logistics firm in Toronto, hears that customers in Australia find the tracking page slow. The page weighs 3 MB, mostly large photos. With 20,000 visits a month, the server sends 3 x 20,000 = 60,000 MB, about 60 GB, every month. After compressing the images, the page weighs 1.2 MB: 1.2 x 20,000 = 24,000 MB, or 24 GB. That is 60 per cent less data. Serving the images from a CDN also means a visitor in Sydney downloads them from a nearby server instead of one in Canada.

Common mistake: assuming a bigger server fixes every slow page. Often the server replies quickly and the browser then spends seconds downloading heavy images and scripts. Check what the browser is waiting for before you add server power.

Guided reflection, included with a free account

Practical takeaway

Keep three questions apart: what the browser does, what the server does and where the server lives. Most speed and reliability problems belong clearly to one of them, and naming the right one gets the right person working on it.

1
Page 4 of 5 · Chapter 1 of 5

Front end, back end and how they talk

How the Web Works

Three professionals discussing financial charts and graphs during a business meeting

Two halves of one application

The front end is everything that runs in the browser: the HTML structure, the CSS styling and the JavaScript that responds to clicks. The back end runs on the server. It checks who you are, applies business rules, reads and writes the database and sends back results. A simple brochure site can be all front end. Most tools you use at work, such as a booking system or an expenses app, need both. In job adverts you will see front-end developers, back-end developers and full-stack developers, who work across both halves.

How they talk: APIs and JSON

The front end asks the back end for data through an API (application programming interface), a set of agreed addresses and formats. Think of it as a menu: the front end can only order what the back end has published, in the format it expects. The request is ordinary HTTP. The answer is usually JSON, a lightweight text format of names and values that both sides can read. Because JavaScript can fetch JSON in the background, the page can update one part of the screen without reloading everything.

A worked example: tracing one click

Sara, a product analyst at a fintech start-up in Pune, wants to know why the balance on the app's dashboard sometimes shows zero. She traces one click from start to finish:

  1. The user opens the dashboard and the front end sends GET /api/accounts/482/balance.
  2. The back end checks the login token, then queries the database.
  3. It replies 200 OK with the JSON {"balance": 15250, "currency": "INR"}.
  4. The front end reads the balance field and shows 15,250 rupees on screen.

Sara opens the Network tab during a slow moment and compares the response with the screen. She finds that when the database is slow, the back end gives up and returns a 500 error. The front end ignores the error and shows its default value of zero. Before the fix, a customer with 15,250 rupees sees 0. After the fix, the front end checks the status code and shows "Balance unavailable, please try again". The data was never wrong. The display was.

Common mistake: assuming a wrong number on screen means wrong data in the database. The data may be correct and the front end may be handling an error badly, or the reverse. Look at the actual request and response before you decide which side to fix.

Practical takeaway

For any feature, ask three questions: what does the browser show, what does the server do, and what data passes between them? If you can draw those three boxes and the arrows, you understand the system well enough to discuss it with developers.

1
Page 5 of 5 · Chapter 1 of 5

Checkpoint

How the Web Works

Young professional gesturing while discussing ideas in a modern office setting

Checkpoint: The order page that will not load

Interactive scenario, included with a free account

What good looks like

Good diagnosis follows the path a request takes. Start in the browser, because the Network tab shows every request, its status code and its timing. If one API call fails while the page itself loads, the front end is probably fine and the back end needs attention. Then check the server logs for that request. Report what failed, the evidence and the likely owner. That habit saves time whether you write code or not.

This chapter

DNS (Domain Name System)
KEY
The system that translates a domain name such as example.com into the IP address of the server that hosts it.
IP address
KEY
A numerical address that identifies a device on the internet so other computers can send data to it.
HTTP request and response
KEY
The message a browser sends to ask a server for something, and the server's reply containing a status code, headers and content.
Status code
KEY
A three-digit number in an HTTP response that shows whether the request succeeded, was redirected or failed on the client or server side.
Hosting
BIZ
The service that provides and runs the server where a website or application lives.
Content delivery network (CDN)
KEY
A network of servers in many locations that stores copies of a site's files so visitors download them from somewhere nearby.
API (application programming interface)
KEY
An agreed set of addresses and formats that lets one piece of software request data or actions from another.
JSON
KEY
A lightweight text format that stores data as names and values, widely used for sending data between front end and back end.

What's inside the rest of this course

A free account opens every chapter, with audio, practice and progress saved.

  1. 2

    Front End: HTML, CSS and JavaScript

    17 min read

    Every web page you use is built from three layers: HTML for meaning, CSS for layout and JavaScript for behaviour. Learn what each one does, how to make pages that work for everyone on any screen, and what frameworks such as React really solve.

    You'll learn
    • HTML describes what each part of a page means.
    • Semantic elements give keyboard and screen reader support for free.
    • CSS grid and media queries let one layout fit every screen.
    • Frameworks such as React keep changing data and the screen in step.
    Key terms covered
    Semantic HTMLDOMAlt textContrast ratioResponsive designMedia query
    Read chapter 2 →
  2. 3

    Back End, Databases and APIs

    17 min read

    Behind every button you press, a server checks who you are, applies the rules and stores the result. This chapter shows you how routes, databases and REST APIs work together, with worked examples you can follow without writing a line of code.

    You'll learn
    • Every request passes through a route that checks, decides and replies.
    • Authentication and authorisation are different checks, and you need both.
    • Tables suit linked data, while documents suit records read as a whole.
    • Good APIs use nouns, methods and honest status codes.
    Key terms covered
    RouteAuthenticationAuthorisationPrimary keyForeign keySQL
    Read chapter 3 →
  3. 4

    Deployment and Security Basics

    17 min read

    Working code is only useful once it reaches users safely and stays safe. Learn how teams use Git and pull requests, ship through automated pipelines, and apply the security and data protection basics every web developer is expected to know.

    You'll learn
    • Every change goes on its own branch and through a small pull request.
    • Staging catches problems before real users meet them in production.
    • A leaked secret must be revoked at once, not just deleted.
    • Privacy laws in the UK, India and the US all expect reasonable security.
    Key terms covered
    GitPull requestStaging environmentCI/CDOWASP Top 10Password hashing
    Read chapter 4 →
  4. 5

    How Full-Stack Teams Work and How to Start

    17 min read

    Knowing HTML or SQL is only half the job. This chapter shows you how real product teams turn ideas into shipped code, how to build a portfolio that proves your skills, and which roles and credentials can open the first door.

    You'll learn
    • Product teams move work through tickets, pull requests and reviews.
    • Small, focused pull requests get reviewed faster and break less.
    • Three finished, deployed projects beat ten half-built tutorials.
    • Certifications help most when they match the jobs you apply for.
    Key terms covered
    TicketCode reviewSprintPortfolio projectREADMEFoundational certification
    Read chapter 5 →

Frequently asked questions

What does a full-stack developer do?

+

A full-stack developer works on both the part of a website or app people see in the browser and the server side that stores data and runs the logic. In practice most developers lean towards one side, but understanding the whole path helps you design features that work end to end and fix problems faster.

Do I need a computer science degree to become a web developer?

+

No. Many developers are self-taught or come from short courses and bootcamps. Employers look for evidence that you can build and explain working software, so a small portfolio of real projects on GitHub often matters more than the qualification. A degree helps with some employers and with deeper computer science topics.

Which programming language should I learn first for web development?

+

Start with HTML, CSS and JavaScript, because every browser runs them and they show results immediately. JavaScript also runs on the server through Node.js, so one language can take you a long way. Learn SQL early too, because almost every application stores data in a database.

Is this course enough to get a developer job?

+

It gives you the map: how the web works, what each layer does and how teams ship software. To get a job you then need practice, building and deploying a few projects of your own. The final chapter suggests a learning plan, first projects and recognised credentials.

Why does a web development course cover security and data laws?

+

Because most serious incidents start with ordinary mistakes such as weak access checks, exposed secrets or careless handling of personal data. Laws in the UK, India and the US place duties on organisations that collect personal data, and developers make many of the decisions that decide whether those duties are met.

Ready for the next chapter?

Sign in to continue the complete module for free.

Continue Learning Free