Skip to content

Avi.js tutorial ​

This tutorial teaches Avi.js by building a small API, one concept per chapter. It is written for Node.js and TypeScript developers who know Express. NestJS experience helps but is not required.

Every chapter runs with the published packages. Start with chapter 0 to create a project, then follow the chapters in order or jump to what you need.

#ChapterStatus
0Getting startedRunnable
1Your first appRunnable
2Routing: params, query, precedenceRunnable
3Modules and dependency injectionRunnable
4Controllers: explicit and decorator stylesRunnable
5Middleware, guards and errorsRunnable
6Validation and typed inputRunnable
7Running in productionRunnable
8Testing your appRunnable
9Project structure: modular and minimalRunnable
10Build-time checks and manifestsRunnable
11OpenAPI documentsRunnable
12Security headers and CORSRunnable
13Avi.js for NestJS developersRunnable

Throughout the tutorial you build Greeter, a small API with a users resource and a greeting service, so each chapter adds to the previous one.

Released under the MIT License.