Unread Notifications

Latest Notifications

No Notifications

You're all set! Start a discussion by leaving a comment on a lesson or replying to an existing comment.

AdonisJS / Router

The AdonisJS Router provides routing capabilities for AdonisJS applications. It allows grouping, param validation, sub-domains, middleware assignment, naming, and so much more. It integrates deeply with the HttpContext and Edge.

Series

Latest Lessons

Let's Build A Changelog App / Lesson 4.0

Creating Teams & Setting Default Team

In this stream, we'll be adding the ability to create new teams, set the default team for a user when they switch between teams, and auto-forward users to their default team after login.

Let's Learn AdonisJS 5 / Lesson 2.7

The Middleware Mountain

In this lesson, we'll learn about the two different types of middleware, global middleware and registered middleware. We'll also take a deep dive into how they play into the flow of an AdonisJS Request.

AdonisJS Quick Tip / Lesson 9.0

Http Method Spoofing & Helper Components in AdonisJS

In this lesson, we'll learn how we can utilize Http Method Spoofing to send PUT, PATCH, and DELETE requests using native HTML forms. We'll then create utility functions to make the implementation cleaner.

Let's Learn AdonisJS 5 / Lesson 3.1

Route & Controller Resources

In this lesson, we'll learn what a resource is and how we can quickly and easily define a route resource and handle each resourceful route with a resource controller.

Let's Build with AdonisJS / Lesson 1.2

Rebuilding Jagr.Co, Password Reset & Account Locking

In this livestream, we'll add a system to lock users' accounts after so many bad login attempts and we'll also add in the password reset flow.

Let's Learn AdonisJS 5 / Lesson 3.0

Handling Routes with Controllers

In this lesson, we'll learn about Controllers and how we can keep our route definitions clean and easy to scan by extracting our route handlers into these Controllers.

Let's Build with AdonisJS / Lesson 1.1

Rebuilding Jagr.Co, Username Sign In & Post CRUD

In this livestream we cover adding the ability to sign in using either a username or email address. We also dig into setting up the ability to create, read, update, and delete our posts.

Let's Build with AdonisJS / Lesson 1.0

Rebuilding Jagr.Co, Start & Auth

In this livestream we create a new project, install and configure the Lucid and Auth packages. Define our migrations and model schema. And hammer down basic authentication.

Let's Learn AdonisJS 5 / Lesson 2.6

Extending the Adonis Router and Route Matchers

In this lesson, we'll be learning how we can add our own chainable methods using macros to the Adonis Router's Route, Route Group, Route Resource, Brisk Route, and Matchers properties.

Let's Learn AdonisJS 5 / Lesson 2.4

Multi-File Route Grouping Strategies

In this lesson, we'll discuss strategies you can use to apply multiple files worth of route definitions into a single route group without redefining the route group in each file.

Let's Learn AdonisJS 5 / Lesson 2.3

Naming, Grouping, & Prefixing Routes

In this lesson, we'll learn about naming routes and using groups with prefixes to structure our routes and reduce redundancies.

Let's Learn AdonisJS 5 / Lesson 2.2

Moving & Organizing Routes

In this lesson, we'll cover various different ways you can structure your routes within your Adonis project, including moving the routes.ts file, and using a module approach

Let's Learn AdonisJS 5 / Lesson 2.1

Dynamic Routing with Route Parameters

In this lesson, we go in-depth with route parameters covering optional route params, validation using matchers, casting, wildcards, and a few things to watch out for.

Let's Learn AdonisJS 5 / Lesson 2.0

Routing Introduction

We'll learn how to define routes in Adonis using the Route module. We'll cover defining routes for specific HTTP Methods (like GET, POST, PUT/PATCH, and DELETE), Caveats, and Brisk Routes.

Let's Learn AdonisJS 5 Preview / Lesson 4.0

Let's Learn Adonis 5: Controllers, Services, Resources, and Namespacing

In this lesson, we'll be hammering down several Adonis topics in one swoop. We'll be covering Controllers, which in turn allow us to utilize Services, Resources, and Namespacing.

Let's Learn AdonisJS 5 Preview / Lesson 3.0

Let's Learn Adonis 5: Routes and Route Handling

In this lesson, we learn the basics of Adonis routing and route handling by covering how to define a route, render a page, respond with JSON, simplify our route definitions, and more.

Want A Monthly Roundup of the Newest Lessons?

Sign up for our Adocasts Roundup newsletter! It's sent monthly and contains the a roundup of all the latest Adocasts lessons.