Adocasts
Master AdonisJS and NodeJS with expert video lessons on Adocasts. Explore topics like authentication, Edge templating, Lucid ORM, and more to build robust web applications.

#15 | Route Names & Type-Safe Route Generation - AdonisJS 7
The video explains moving from hard-coded route paths to named routes in AdonisJS, leveraging the as method and type-safe route definitions. It covers how to reference routes by name, use the URL/route builders, handle route params (like IDs), and replace manual hrefs/forms with a reusable form component that builds URLs and handles CSRF, including updates for edits and redirects.

#14 | Validation & Flash Storage - AdonisJS 7
The lesson covers implementing validation with VineJS in AdonisJS to defensively handle user input. It walks through creating a validator for a challenge, using request.validate for store/update, handling errors via flash messages, and rendering those errors on the form with helper components for a better UX.

#12 | Components, Layouts, & Partials - AdonisJS 7
The video explains the difference between partials and components in Edge.js, showing how to extract reusable markup into partials or build components with isolated state and slots. It covers including partials, self-closing component tags, slot content and scopes, and techniques to pass data via props, injected state, and slot scopes to create clean, reusable UI structures.

#13 | Form Basics, Method Spoofing, & CSRF - AdonisJS 7
The chapter walks through extending a challenges system with create and edit functionality. It covers setting up pages, routes, and forms (with CSRF protection and proper HTTP verbs), handling in-memory data updates, and adding edit flows (including IDs, rendering defaults, and method spoofing) to support updating existing challenges.
Get daily AI recaps from
Adocasts in your inbox
Get AI-powered summaries delivered to your inbox. Save hours every week while staying fully informed.