Full-Stack Development
Build and ship one whole web app — the request from browser to database and back, a monorepo with shared types, the data layer, the API contract, auth end to end, the interactive client, testing, deployment and operation. The seams between layers, not each layer's internals, which stay in frontend, backend, react, nodejs and api-design. Forty-five lessons.
What a full-stack developer doesA full-stack developer owns a feature across browser, API and database. See where the layers meet, using the Taskboard app this roadmap builds.The life of a request, end to endFollow one Taskboard click from the browser through DNS, TLS, the API and Postgres and back, and see which hop to blame when something breaks.SPA, SSR and meta-framework architecturesDecide who builds the HTML for Taskboard: the browser, your server, or a build step. Compare SPA, SSR, static output and meta-frameworks by what each moves.Choosing a full-stack stackPick a stack for Taskboard by asking what you can run, hire for and change later. A short decision method, plus the choices this roadmap makes and why.From requirements to a buildable planTurn 'a small team task board' into user stories, a data sketch and vertical slices you can build in order, with Taskboard's real plan as the example.Monorepo layout for full-stack projectsPut Taskboard's client, API and shared code in one repo with npm workspaces, and see why it removes the copy-paste that makes two repos drift apart.Shared types and code between client and serverShare Zod schemas and inferred types between Taskboard's client and API, and see where a shared type lies, such as dates that cross the wire as strings.A local environment with Docker ComposeStart Taskboard's Postgres and file storage with one command using Docker Compose, and learn the three mistakes that make a local database unreachable.Environment variables and secrets across layersConfigure Taskboard's API and client from the environment, and see why a prefixed Vite variable ships to every visitor while a server secret never should.Seed data and the dev database workflowFill Taskboard's dev database with realistic data using a repeatable seed script, and learn the reset loop: migrate, seed, change, wipe, repeat.Designing the schema from featuresDerive Taskboard's tables from its user stories, then add the constraints that make the database refuse bad data so the API and UI cannot corrupt it.Typed queries with an ORM in a featureBuild one Taskboard feature, changing a task's status, with Drizzle: define tables once, get typed queries, and see what the compiler catches and misses.Shaping queries for screensFetch what a Taskboard screen needs in one query instead of twenty: relational queries, grouped counts, and the join fan-out that inflates your numbers.Pagination, filtering and search end to endMake Taskboard's task list handle thousands of rows: cursor pagination, filters and search from the URL to the SQL, and why offset pages repeat items.File uploads from browser to storage and backLet Taskboard users attach files with presigned URLs: the browser uploads straight to object storage, the API records it, and downloads use short-lived links.Designing endpoints for the UIShape API endpoints around the screens that call them: one board endpoint, not five round trips, plain resources for writes, and how to cope as screens change.End-to-end type safetyDerive the client's types from the server's routes so renaming a field breaks the build, not the page. Hono RPC with Zod, and where the guarantee stops.Validating on the client and the serverWrite one Zod schema, run it in the browser for fast feedback and again on the server for safety, and treat only the server's check as the one that counts.Error handling across the stackOne error shape from database to toast: stable codes and field maps on the server, one typed failure on the client, and a screen state per failure kind.CORS and cross-origin setupsWhy a browser blocks your own API on another port, what a preflight is, how cookies cross origins, and when a dev proxy or one shared origin avoids it all.Calling the API from the clientOne thin, typed layer between your components and fetch: a base URL, credentials, a single error type, and why components should not call fetch themselves.The sign-up and login flowFollow one account from the sign-up form to a session cookie: what each layer does, what to store, and the small decisions that leak accounts.Sessions vs tokens in a SPAPick between a server-side session cookie and a signed token for a SPA: what each stores, what logout means, and what an XSS bug costs you.Social login with OAuthAdd Sign in with Google to Taskboard by running the authorization code flow with PKCE and state, then turning the provider's answer into your own session.Authorization in the API and the UIEnforce who may do what on the server, and only mirror it in the UI: ownership checks, roles, 401 versus 403 versus 404, and why a hidden button is not a lock.CSRF, XSS and cookie settings across layersSet HttpOnly, Secure and SameSite on the session cookie, stop cross-site requests with an Origin check, and keep script out of the page, layer by layer.Server state vs UI stateSort every piece of data in the Taskboard client into server state, a cached copy of something the database owns, or UI state, and give each the right home.Forms from submit to databaseTrace a Taskboard form submit from browser to database row and back: pending state, server field errors, double submits and what to clear on success.Optimistic updates and consistencyUpdate the screen before the server answers, then roll back if it says no. The snapshot, the rollback, the final refetch, and where optimism is a bad idea.Real-time updates end to endPush new tasks to other open boards with server-sent events: the stream, EventSource, cache updates, reconnects, and when to use WebSockets or polling.The testing strategy for a full-stack appDecide which tests Taskboard gets at each layer, why most of them should cross a seam, and which bugs only a real database or browser can catch.Integration tests for the API and databaseTest Taskboard API against a real Postgres: build the app from a factory, reset data between tests, and choose between PGlite and a container.End-to-end tests with PlaywrightDrive a real browser against a running Taskboard with Playwright: role and label locators, auto-waiting assertions, and a web server the config starts.Continuous integration for a full-stack repoWire a GitHub Actions pipeline for Taskboard that type-checks, runs API tests, then browser tests, with caching, a fast-fail order and uploaded traces.Deploying the three tiersPut Taskboard on three hosts, a static client, a Node API and Postgres, and see how they find each other and why build-time and runtime settings differ.Environments, domains and TLSGive Taskboard staging and production environments, point domains at each tier, and learn what the padlock checks: chain, hostname and expiry.Database hosting, backups and restoresChoose managed Postgres, tell logical dumps from point-in-time recovery, and run a restore drill, because a backup you never restored is only a guess.Zero-downtime deploys and schema changesChange Taskboard's database while two versions of the API run at once, using expand and contract, a backfill, and a rolling deploy that never breaks old code.Observability across layersFollow one Taskboard request from the browser through the API to the database using a request id, structured logs, and traces, and know what to alert on.Performance across the stackFind why a Taskboard page is slow by reading the network waterfall, then fix the layer at fault: N+1 queries, missing indexes, payloads or request chains.Payments and webhooks end to endAdd a paid plan with hosted checkout, then treat the provider webhook as the truth: verify the signature, store event ids and make handlers idempotent.Background work and email from a featureMove slow work off the request path: enqueue a welcome email in the sign-up transaction, run it in a retrying worker, and compare Postgres with BullMQ.First bottlenecks when traffic growsLearn the order Taskboard breaks as traffic grows, connections, slow queries, repeated work, and the cheap fixes to try before adding servers.A security review before launchWalk Taskboard stack with a launch checklist, covering access control, input, secrets, headers, dependencies, uploads and logs, with findings from running it.Shipping a complete app, the capstoneLaunch Taskboard with a definition of done, a release order, a smoke test for each tier, a rollback plan and a first-week watch list.
What full-stack means
- What a full-stack developer doesA full-stack developer owns a feature across browser, API and database. See where the layers meet, using the Taskboard app this roadmap builds.
- The life of a request, end to endFollow one Taskboard click from the browser through DNS, TLS, the API and Postgres and back, and see which hop to blame when something breaks.
- SPA, SSR and meta-framework architecturesDecide who builds the HTML for Taskboard: the browser, your server, or a build step. Compare SPA, SSR, static output and meta-frameworks by what each moves.
- Choosing a full-stack stackPick a stack for Taskboard by asking what you can run, hire for and change later. A short decision method, plus the choices this roadmap makes and why.
- From requirements to a buildable planTurn 'a small team task board' into user stories, a data sketch and vertical slices you can build in order, with Taskboard's real plan as the example.
Project foundations
- Monorepo layout for full-stack projectsPut Taskboard's client, API and shared code in one repo with npm workspaces, and see why it removes the copy-paste that makes two repos drift apart.
- Shared types and code between client and serverShare Zod schemas and inferred types between Taskboard's client and API, and see where a shared type lies, such as dates that cross the wire as strings.
- A local environment with Docker ComposeStart Taskboard's Postgres and file storage with one command using Docker Compose, and learn the three mistakes that make a local database unreachable.
- Environment variables and secrets across layersConfigure Taskboard's API and client from the environment, and see why a prefixed Vite variable ships to every visitor while a server secret never should.
- Seed data and the dev database workflowFill Taskboard's dev database with realistic data using a repeatable seed script, and learn the reset loop: migrate, seed, change, wipe, repeat.
The data layer
- Designing the schema from featuresDerive Taskboard's tables from its user stories, then add the constraints that make the database refuse bad data so the API and UI cannot corrupt it.
- Typed queries with an ORM in a featureBuild one Taskboard feature, changing a task's status, with Drizzle: define tables once, get typed queries, and see what the compiler catches and misses.
- Shaping queries for screensFetch what a Taskboard screen needs in one query instead of twenty: relational queries, grouped counts, and the join fan-out that inflates your numbers.
- Pagination, filtering and search end to endMake Taskboard's task list handle thousands of rows: cursor pagination, filters and search from the URL to the SQL, and why offset pages repeat items.
- File uploads from browser to storage and backLet Taskboard users attach files with presigned URLs: the browser uploads straight to object storage, the API records it, and downloads use short-lived links.
The API contract
- Designing endpoints for the UIShape API endpoints around the screens that call them: one board endpoint, not five round trips, plain resources for writes, and how to cope as screens change.
- End-to-end type safetyDerive the client's types from the server's routes so renaming a field breaks the build, not the page. Hono RPC with Zod, and where the guarantee stops.
- Validating on the client and the serverWrite one Zod schema, run it in the browser for fast feedback and again on the server for safety, and treat only the server's check as the one that counts.
- Error handling across the stackOne error shape from database to toast: stable codes and field maps on the server, one typed failure on the client, and a screen state per failure kind.
- CORS and cross-origin setupsWhy a browser blocks your own API on another port, what a preflight is, how cookies cross origins, and when a dev proxy or one shared origin avoids it all.
- Calling the API from the clientOne thin, typed layer between your components and fetch: a base URL, credentials, a single error type, and why components should not call fetch themselves.
Auth end to end
- The sign-up and login flowFollow one account from the sign-up form to a session cookie: what each layer does, what to store, and the small decisions that leak accounts.
- Sessions vs tokens in a SPAPick between a server-side session cookie and a signed token for a SPA: what each stores, what logout means, and what an XSS bug costs you.
- Social login with OAuthAdd Sign in with Google to Taskboard by running the authorization code flow with PKCE and state, then turning the provider's answer into your own session.
- Authorization in the API and the UIEnforce who may do what on the server, and only mirror it in the UI: ownership checks, roles, 401 versus 403 versus 404, and why a hidden button is not a lock.
- CSRF, XSS and cookie settings across layersSet HttpOnly, Secure and SameSite on the session cookie, stop cross-site requests with an Origin check, and keep script out of the page, layer by layer.
The interactive app
- Server state vs UI stateSort every piece of data in the Taskboard client into server state, a cached copy of something the database owns, or UI state, and give each the right home.
- Forms from submit to databaseTrace a Taskboard form submit from browser to database row and back: pending state, server field errors, double submits and what to clear on success.
- Optimistic updates and consistencyUpdate the screen before the server answers, then roll back if it says no. The snapshot, the rollback, the final refetch, and where optimism is a bad idea.
- Real-time updates end to endPush new tasks to other open boards with server-sent events: the stream, EventSource, cache updates, reconnects, and when to use WebSockets or polling.
Testing a full-stack app
- The testing strategy for a full-stack appDecide which tests Taskboard gets at each layer, why most of them should cross a seam, and which bugs only a real database or browser can catch.
- Integration tests for the API and databaseTest Taskboard API against a real Postgres: build the app from a factory, reset data between tests, and choose between PGlite and a container.
- End-to-end tests with PlaywrightDrive a real browser against a running Taskboard with Playwright: role and label locators, auto-waiting assertions, and a web server the config starts.
- Continuous integration for a full-stack repoWire a GitHub Actions pipeline for Taskboard that type-checks, runs API tests, then browser tests, with caching, a fast-fail order and uploaded traces.
Shipping and operating
- Deploying the three tiersPut Taskboard on three hosts, a static client, a Node API and Postgres, and see how they find each other and why build-time and runtime settings differ.
- Environments, domains and TLSGive Taskboard staging and production environments, point domains at each tier, and learn what the padlock checks: chain, hostname and expiry.
- Database hosting, backups and restoresChoose managed Postgres, tell logical dumps from point-in-time recovery, and run a restore drill, because a backup you never restored is only a guess.
- Zero-downtime deploys and schema changesChange Taskboard's database while two versions of the API run at once, using expand and contract, a backfill, and a rolling deploy that never breaks old code.
- Observability across layersFollow one Taskboard request from the browser through the API to the database using a request id, structured logs, and traces, and know what to alert on.
- Performance across the stackFind why a Taskboard page is slow by reading the network waterfall, then fix the layer at fault: N+1 queries, missing indexes, payloads or request chains.
Growing the app
- Payments and webhooks end to endAdd a paid plan with hosted checkout, then treat the provider webhook as the truth: verify the signature, store event ids and make handlers idempotent.
- Background work and email from a featureMove slow work off the request path: enqueue a welcome email in the sign-up transaction, run it in a retrying worker, and compare Postgres with BullMQ.
- First bottlenecks when traffic growsLearn the order Taskboard breaks as traffic grows, connections, slow queries, repeated work, and the cheap fixes to try before adding servers.
- A security review before launchWalk Taskboard stack with a launch checklist, covering access control, input, secrets, headers, dependencies, uploads and logs, with findings from running it.
- Shipping a complete app, the capstoneLaunch Taskboard with a definition of done, a release order, a smoke test for each tier, a rollback plan and a first-week watch list.