Study Atlas › Computer Science › Web

Web development: front end and back end

Front end runs in the browser (HTML, CSS, JavaScript); back end runs on servers (APIs, databases).

Edited by Alex C, EduAlx · Sources cited below

Explanation

Front-end frameworks (React, Vue, Svelte) build interactive interfaces. Back ends use Node.js, Python (Django, Flask, FastAPI), Java or Go, exposing REST or GraphQL APIs. Responsive design adapts to screen size. Static sites can be hosted on CDNs; dynamic ones need servers or serverless functions.

Example

A fetch() call from the browser requests JSON from a Flask API that queries PostgreSQL.

Code

# app.py (Flask)
from flask import Flask, jsonify
app = Flask(__name__)
@app.get('/api/hello')
def hello():
    return jsonify(message='Hello from the server')

How it works, step by step

  1. Browser loads HTML, CSS and JS
  2. JS calls an API
  3. Server validates the request and queries the database
  4. Server returns JSON
  5. Browser updates the page

Open the interactive page with diagrams →

People behind it

References

  1. R. T. Fielding, Architectural Styles and the Design of Network-based Software Architectures, PhD thesis, UC Irvine, 2000.

Textbooks

Related topics

World Wide Web, HTTP and HTMLSearch engines and PageRankHash functions and digital signaturesComputer vision and convolutional neural networksComputer security fundamentals (CIA triad)Natural language processingDistributed systems: CAP theorem and consensusReinforcement learningCloud computingDecision trees and ensemble methods