room ~ Web Application Basics

Web Application Basics

Frontend/backend, web flow, HTML/CSS/JS roles, databases, and web security basics

1/4
lessons

How Web Applications Work

The Web Request Flow

User types URL → Browser → DNS resolves domain → TCP connection → 

HTTP Request → Web Server → Application Code → Database →

Response → Browser renders page

Step by Step

  1. 1.User types https://example.com/login
  2. 2.DNS converts example.com → 93.184.216.34
  3. 3.TCP connection established (3-way handshake)
  4. 4.TLS handshake (if HTTPS)
  5. 5.HTTP Request sent: GET /login HTTP/1.1
  6. 6.Web Server (Nginx/Apache) receives request
  7. 7.Application (PHP/Python/Node) processes logic
  8. 8.Database queried if needed
  9. 9.Response sent back: HTML + CSS + JS
  10. 10.Browser renders the page

Components

LayerTechnology ExamplesRole
ClientBrowser (Chrome, Firefox)Display, interact
FrontendHTML, CSS, JavaScriptStructure, style, behavior
Web ServerNginx, Apache, IISServe files, proxy
ApplicationPHP, Python, Node.js, JavaBusiness logic
DatabaseMySQL, PostgreSQL, MongoDBStore data
CacheRedis, MemcachedSpeed up responses

Static vs Dynamic

TypeWhatExample
StaticPre-built HTML filesBlog, documentation
DynamicGenerated per requestLogin, dashboard, search