DevPath · Learn to code ESPTEN

Backend, HTTP and handlers

The backend and HTTP

Frontend and backend

The frontend is what runs in the browser (the interface). The backend is the program that runs on a server: it stores the data, applies the business logic and responds to the frontend's requests.

With Node.js you can write that server in JavaScript, the same language as the frontend. That's why "full-stack JS".

HTTP: request and response

Client and server talk over HTTP. The client sends a request and the server returns a response.

A request has:

A response has:

Put this into practice

DevPath is a hands-on course: you read the theory here; in the app you put it into practice with exercises that really run, offline.

Start free in the app →
Express: handlers (req, res) →