LEVEL 12 · ZUDOJS
Course Core
ZudoJS fundamentals
Enter ZudoJS knowing what it abstracts: its package architecture, the CLI, the anatomy of a project, the core, runtime and lifecycle, shared types and constants, dependency injection, configuration, errors, HTTP, middleware, schemas and validation.
0 of 14 lessons done
When you finish, you can
- Explain what each ZudoJS package does and when not to use it
- Create, generate and run a project with the zudojs CLI
- Trace a request from the entry point through the container to a handler
- Wire services with @zudojs/container
- Configure an application in layers and handle errors the ZudoJS way
- Serve a validated HTTP API with routes and middleware
You build: The Task API rebuilt with ZudoJS
MODULE 1
Entering ZudoJS
- 1Welcome to ZudoJSWhat ZudoJS is, how its packages are layered, what each of its packages is for, what the zudojs command-line tool does, and the three application shapes it can create. Then run three ZudoJS packages together in your browser.25 min
- 2Your first Zudo codeInstall your first ZudoJS packages, check untrusted data at runtime with @zudojs/schema, and report failures with the ready-made errors in @zudojs/errors.35 min
- 3Create the Task API projectInstall the ZudoJS command-line tool, create the Task API project with flags or by answering its questions, start it in development, find your way around the files, use every CLI command, and build and run it for production.50 min
- 4The ZudoJS CLI in depthUse every command and option of the zudojs CLI, learn how it finds your project and names and wires generated files, and read its errors before they cost you time.50 min
- 5Anatomy of a ZudoJS projectTrace a generated ZudoJS project from src/server.ts through config, runtime and composition root to a controller, service and repository, running the real generated files.55 min
MODULE 2
Core, runtime and lifecycle
- 6The core: applications, modules and contextBuild an application with @zudojs/core, compose it from modules, and carry each request's identity through async code with the execution context.50 min
- 7The application runtime and lifecycleLearn how the ZudoJS runtime starts the parts of your application in dependency order, rolls back when startup fails, reports readiness, and shuts everything down gracefully.45 min
- 8Components with @zudojs/lifecycleStart and stop a database, a job queue and an HTTP server in the right order with @zudojs/lifecycle, with retries, timeouts, priorities, optional parts, rollback and graceful shutdown.55 min
MODULE 4
HTTP
- 10Routes, requests and responsesServe the Task API over HTTP with @zudojs/http. Start a server, add routes with parameters, read query strings, headers, cookies and JSON bodies safely, and answer with the right status codes.50 min
- 11Middleware, CORS, security headers and graceful shutdownWrap every Task API route in middleware. Learn how a middleware pipeline runs, then add security headers, a CORS allow-list, rate limits with @zudojs/security, and a graceful shutdown that lets requests in progress finish.50 min
MODULE 5
Configuration, validation and errors
- 12ConfigurationKeep settings out of the code with @zudojs/config. Layer defaults, a config file and environment variables by priority, validate the result with a schema, keep secrets out of logs, and make the Task API's generated configuration stricter in production than in development.45 min
- 13Schemas and validation in depthValidate everything that crosses the Task API's boundary with @zudojs/schema. Read issues, coerce query strings, transform and refine values, block unknown fields, validate requests in routes and responses on the way out, and guard against hostile JSON with @zudojs/validation.50 min
- 14The ZudoJS error systemHandle failures the ZudoJS way. Tell expected errors from bugs, use and extend the error classes in @zudojs/errors, choose codes and categories, serialize errors safely for clients and fully for logs, and turn every error in the Task API into the right HTTP response.45 min
Course checkpoint
Prove you can move on. The checkpoint picks 20 questions at random from every lesson in this course. Get 16 right to pass. Your result is saved in this browser only.