DevPath · Learn to code ESPTEN

Mini-project: your team, full-stack

You close the loop

The final checkpoint 🚀

Your team has come a long way: it started as a card in the console, grew into a team with statistics, and in React you gave it a face on screen. But all of that lived in the code: if you reload, it's gone. Real apps remember.

Today you close the loop: your team moves to a database (SQL) and is served by an API (Node). This is full-stack.

The journey of a piece of data

When your screen asks for the team, the data makes this journey:

[ Database ]  →  [ API / server ]  →  [ Interface ]
   SQL (the table)   Node (the handler)    React (③)

You'll build it from the ground up

Each handler receives (req, res). In the tests we call it with a simulated request and response (crearReq/crearRes), like a toy Express. 👇

Examples

A handler in action — press Run

function listTeam(req, res) {
  res.json([
    { name: "Ana", age: 26 },
    { name: "Beto", age: 36 },
  ]);
}

// In the tests it's called with simulated req/res:
const res = crearRes();
listTeam(crearReq(), res);
console.log("Status:", res.statusCode);
console.log("Body:", res.body);
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 →
View the module →