Let's Learn AdonisJS 7

In this series we'll learn AdonisJS, a NodeJS web framework for building type-safe full-stack, API, and even Inertia applications. It also provides everything needed to build production-ready applications out-of-the-box with first-party packages.

Difficulty Beginner
What's Inside 28 Lessons
Viewing Time 6h 43m
Sign up to save progress
1

Module 1
Project Foundations

1.0

Introducing AdonisJS

Introduction to AdonisJS, a full-featured Node.js web framework designed to reduce choice fatigue with opinionated conventions, built-in batteries, and first-class TypeScript support.

3m 43s
1.1

Dev Environment & Text Editor

Learn how to set up your AdonisJS development environment: install Node.js 24+, NPM 11+, and VS Code with AdonisJS, Japa, and EdgeJS extensions.

13m 43s
1.2

Creating A New AdonisJS 7 Project

Step-by-step guide to create your first AdonisJS 7 project. Learn about the several official starter kit options and how to boot your server once created.

5m 32s
1.3

Lifecycle & Project Structure Tour

Explore the AdonisJS project structure, folder organization, and application lifecycle. Understand the key directories and their purposes.

14m 12s
1.4

Meet the Ace CLI

Learn how to use the Ace CLI, AdonisJS's command-line interface, for development tasks. We'll inspect essential commands for coding and project management.

7m 48s
1.5

Environment Variables

Learn to manage environment variables in AdonisJS to store environment-specific values and keep secret values secure. AdonisJS also supports environment validation, which we'll inspect as well.

11m 32s
2

Module 2
Fundamentals

2.0

Defining Routes & Rendering Views

Learn how to define routes and render views in AdonisJS. Understand route definitions, rendering views, and the router service.

14m 39s
2.1

View State & Passing Data to Views

Learn how to pass data from controllers to views using state in AdonisJS. We'll also discuss the three different types of state in EdgeJS: render, local, and global.

11m 5s
2.2

EdgeJS View & Tag Syntax

Learn all about EdgeJS templating with interpolation, conditionals, loops, variables, and tags. We'll also talk about comments and escaping interpolation and HTML markup.

11m 3s
2.3

Route Parameters & Matchers

Learn AdonisJS route parameters and matchers. Capture dynamic segments in URLs and validate and cast with route matchers.

10m 4s
2.4

Controllers, Barrel Files, & Subpath Imports

Learn AdonisJS controllers, barrel files, and subpath imports. Organize code with controllers and leverage barrel files for cleaner imports.

13m 31s
2.5

Components, Layouts, & Partials

Learn all about EdgeJS components, layouts, and partials for reusable view markup. We'll discuss the differences between the three and dig into specifics on how to use components and their many features

17m 36s
2.6

Form Basics, Method Spoofing, & CSRF

Learn form handling in AdonisJS with method spoofing and CSRF protection. Build secure HTML forms with POST, PUT, and DELETE methods.

21m 59s
2.7

Validation & Flash Storage

Learn how to validate user-provided data and forms in AdonisJS using VineJS. We'll also discuss how to validate route parameters, query strings, cookies, and headers as well.

20m 9s
2.8

Route Names & Type-Safe Route Generation

Learn type-safe route generation in AdonisJS using route names. Generate URLs with named routes for maintainable links and redirects. We'll also inspect the generated type for our route definitions and default route naming.

11m 25s
2.9

Middleware & Grouping Routes

Learn AdonisJS middleware for intercepting HTTP requests. Control request flow, implement logging, and secure your applications.

14m 7s
2.10

Sessions & Flashing Messages

Learn HTTP sessions in AdonisJS for maintaining user state across requests. We'll also learn about flash messaging and the basics of working with it.

9m 16s
3

Module 3
Database

3.0

Database Migrations

Learn database migrations in AdonisJS and how they can be used to scaffold and build upon our application's database. Track, share, and rollback database changes with version control for your schema.

24m 55s
3.1

Models, Schema Classes, & Relationships

Learn AdonisJS models and generated schema classes. We'll discuss model hooks, getters, computed properties, relationships, and how models can use schema classes as a base to automatically keep model columns up-to-date with our database.

23m 28s
3.2

CRUD Basics

Learn CRUD operations in AdonisJS. Create, read, update, and delete records using AdonisJS models and Lucid ORM.

19m 31s
3.3

Factories & Seeders

Learn database seeders and factories in AdonisJS. Populate databases with preliminary data using factories and seeders.

22m 44s
3.4

Query Builder Basics

Learn how to build complex SQL queries with where clauses, selects, joins, and more using method chaining with Lucid's Model and Database Query Builder in AdonisJS.

20m 26s
3.5

Working with Model Relationships

Learn the difference between eager and lazy loading relationships in AdonisJS. We'll also learn about querying nested relationships, filtering by relationships, and more.

18m 35s
3.6

Pagination

Learn pagination in AdonisJS. Split large datasets into pages to improve performance and user experience with Lucid paginate().

19m 29s
4

Module 4
Authentication

4.0

Understanding by Doing, Clean Slate

Learn authentication from scratch in AdonisJS. Remove starter kit auth and rebuild authentication features manually.

4m 32s
4.1

Sign Up & Securing User Passwords

Build a user signup in AdonisJS. Implement secure password hashing, user creation, and form validation for registration.

15m 31s
4.2

Sign In & Sign Out Flows

Implement sign in and sign out in AdonisJS. Learn to verify credentials, manage sessions, and protect routes with auth middleware.

11m 12s
4.3

Using the Authenticated User

Use the authenticated user in AdonisJS. Protect routes with auth middleware, attach creators to records, and verify ownership before mutations.

11m 29s
5

Module 5
Authorization

Installing & Configuring Bouncer

More details about this post will be available soon.

Coming soon

Guarding Operations with Abilities

More details about this post will be available soon.

Coming soon

Guarding Operations with Policies

More details about this post will be available soon.

Coming soon
6

Module 6
The Engine Room

Transforming API Responses with Transformers

More details about this post will be available soon.

Coming soon

Services & Dependency Injection (DI)

More details about this post will be available soon.

Coming soon

Service Providers & The IoC Container

More details about this post will be available soon.

Coming soon

Sending Email Notifications

More details about this post will be available soon.

Coming soon

Events & Listeners

More details about this post will be available soon.

Coming soon

Handling File Uploads

More details about this post will be available soon.

Coming soon

Rate Limiting

More details about this post will be available soon.

Coming soon

Queues & Jobs

More details about this post will be available soon.

Coming soon
excited robot

More in the works!

Add to your watchlist to get notified when new lessons are added