Level 4: Developer
Developer, in 41 missions, is where a learner builds the way professional web teams do. TypeScript comes first, checked in the page by the real TypeScript compiler in strict mode: types for objects, functions and unions, generics, and reading the errors.
Last updated
What does Developer cover?
React follows: components, props, state, forms that hold up, effects, custom hooks and context. Then Next.js: routes and layouts, server and client components, loading and error states, data and API routes, forms that change data, keeping secrets out of the browser, testing, and deploying a site from a GitHub repository.
The last unit is databases and accounts: tables and rows, real SQL with select, joins and safe changes, designing tables for an app, how sign-in works, and rules in the database for who may see what. By the end the big build is a live Next.js site with a database behind it.
TypeScript
Adding types to JavaScript so mistakes are caught before the code runs.
9 missions. By the end: Typed versions of functions and data they wrote earlier.
Why types
Add type annotations to variables and say which mistakes they catch.
25 min
Typing objects and arrays
Describe the shape of objects and arrays with type aliases, including optional properties.
30 min
Typing functions
Write functions with typed parameters and return values, and type a function passed as a value.
30 min
Interfaces and generics
Describe data with interfaces, and write a generic function that keeps its types.
35 min
Either this or that
Use union types for values that can be one of several things, and narrow them before use.
25 min
One value, several states
Model a value that can be in several states with a discriminated union, and prove every case is handled.
35 min
Types made from types
Build new types from existing ones with Partial, Pick, Omit, Record and readonly.
40 min
Reading the red squiggle
Read common TypeScript errors, decide what to change, and choose unknown over any.
25 min
Types at run time, and tsconfig
Explain why types vanish when code runs, check outside data before trusting it, and read a tsconfig file.
40 min
Big build chapter, about 75 minutes
Typed and checked
Types for your build's data and functions, so mistakes are caught before the code runs.
React
Building interfaces from components, props and state.
13 missions. By the end: A small React app with several components and live state.
Components and JSX
Write React components that return JSX, and follow the rules JSX adds to HTML.
20 min
Props
Pass data into components with props, type them, and wrap content with children.
20 min
Lists and conditions
Render a list from an array with keys, and show or hide parts of the page with conditions.
25 min
State
Use useState to hold data that changes, and update it so the page redraws.
25 min
How rendering works
Explain when and why a component runs again, what a key is for, and why you never change state directly.
40 min
Objects and arrays in state
Update objects and arrays in state without mutating them, and remove state that can be worked out.
40 min
Events and forms
Respond to clicks, typing and form submission, using controlled inputs.
25 min
Forms that hold up
Build a form with several fields, validation, a sending state and errors a screen reader announces.
40 min
Sharing state
Move state up to a shared parent, pass callbacks down, and decide where state should live.
25 min
Effects
Use useEffect to load data once, re-run when something changes, and clean up afterwards.
25 min
Custom hooks
Move repeated logic into a custom hook, and follow the rules of hooks.
35 min
Context and composition
Share data without passing it through every layer, and choose between context and composition.
40 min
Project: the kit checklist in React
Build a working checklist app from components, props and state: add, tick off, remove and count.
30 min
Big build chapter, about 90 minutes
The tracker, rebuilt in React
The tracker becomes a React app made of components, with state that drives everything on the page.
Next.js and shipping
Pages, layouts, server and client code, data, APIs, testing and deployment.
12 missions. By the end: A Next.js site deployed to the internet from their own repository.
What a framework adds
Explain what Next.js adds to React, and create and run a new Next.js project.
25 min
How a page reaches the screen
Trace one page view from the address bar to the screen: what runs on the server, what is sent, and what runs in the browser.
35 min
Pages and routes
Work out which file renders at any URL, and add pages, dynamic routes and links between them.
25 min
Layouts and shared UI
Share a header, navigation and footer across pages with layouts, and give pages a title.
25 min
Server and client components
Decide whether a component should run on the server or in the browser, and mark the ones that need the browser.
25 min
Loading, errors and missing pages
Show loading states, handle errors and missing pages with the files Next.js gives you.
35 min
Data and API routes
Load data on the server, write a route handler that returns JSON, and keep secrets out of the browser.
30 min
Forms that change data
Change data from a form with a function that runs on the server, then show the updated page.
35 min
Titles, images and fonts
Give each page a title and description, and load images and fonts the fast way.
35 min
Settings, secrets and private pages
Keep settings and secrets in environment variables, and stop signed-out visitors reaching private pages.
35 min
Testing what you built
Choose what is worth testing, write a unit test, read a browser test and check a site before shipping it.
25 min
Shipping
Deploy a Next.js site from a GitHub repository and check the live site properly.
30 min
Big build chapter, about 120 minutes
Ship it: the big build, live
The big build becomes a real Next.js site, deployed from your own repository to a live address.
Databases and accounts
Where an app keeps its data, how to ask for it with SQL, and how sign-in and permissions work.
7 missions. By the end: A designed set of tables for their own app, queried with real SQL, with rules for who can see what.
Tables and rows
Explain what a database is for, and read a table's columns, rows, types and primary key.
30 min
Asking questions with select
Ask a table questions with select, where, order by and limit.
35 min
Changing data safely
Add, change and delete rows safely, and say what a where clause protects you from.
35 min
Linking tables with joins
Link two tables with a foreign key and combine them with a join.
40 min
Designing your tables
Design the tables for a small app: what each one holds, how they link and which rules they enforce.
40 min
How sign-in works
Explain how sign-in works: accounts, hashed passwords, sessions and tokens, and why you never build it from scratch.
35 min
Who can see what
Decide who may read and change each row, and write that as rules the database enforces.
35 min
Big build chapter, about 90 minutes
The database behind the build
The database for the big build: linked tables with rules, real questions answered in SQL, and a tested rule for who sees which rows.