Udoka Estate, Awka, Anambra State A Subsidiary of Diaspora Digital Media

Clients, Servers and HTTP

What happens when you open a website

  1. You type ddmacademy.com in the browser (the client).
  2. DNS translates the domain into an IP address.
  3. The browser sends an HTTP request to the server.
  4. The server runs backend code, perhaps reads a database, and returns an HTTP response (HTML, JSON, images).
  5. The browser renders the page.

Frontend vs backend

  • Frontend – what users see (HTML, CSS, JavaScript in the browser).
  • Backend – server logic, databases, authentication, payments, emails.

HTTP methods

  • GET read data, POST create, PUT/PATCH update, DELETE remove.

Status codes

  • 200 OK, 201 Created
  • 301 redirect
  • 400 Bad Request, 401 Unauthorized, 403 Forbidden, 404 Not Found
  • 500 Internal Server Error

Popular backend stacks

Node.js (JavaScript), PHP/Laravel (powers WordPress), Python/Django, Java/Spring, C#/.NET.

Exercise: Open your browser's DevTools → Network tab and reload a website. Note five requests: their method, status code and type.

Knowledge check

Lesson quiz

Enroll in the course to take the quiz and track your progress.

Enjoying this preview? Enroll to unlock every lesson and earn your certificate.

Enroll in this course