![null](/img/1/adonisjs-icon-with-bg_1671308746819.jpeg?w=800)
![null](/img/1/adonisjs-icon-with-bg_1671308746819.jpeg?w=192)
AdonisJS
AdonisJS 5 is a NodeJS framework that's comes packed with everything you'll need to quickly build scalable and secure applications or APIs.
From The Feed
-
301 redirects + web server
I have a large list of 301 redirects. How can I implement these 301 redirects in AdonisJS? This list is maintained outside of AdonisJS in different system. I can fetch the list using API, so if the list is changed, how to update the redirec...
Read more -
How can we handle task scheduling in Adonisjs
In official documentation of Adonisjs their no section about task scheduling.
Read more
So how we can handle tasking scheduling
Lessons.
![Video preview](https://videos.adocasts.com/9201a520-c7b6-4f24-9c7f-a3eb92638e9f/preview.webp)
![Composite Unique Constraint](/img/1/composite-unique-constraint_1715810994146.jpeg?w=650)
Defining A Composite Unique Constraint
In this lesson, we'll learn how you can enforce uniqueness between multiple columns using a composite unique constraint.
![Video preview](https://videos.adocasts.com/67f84e93-f484-4982-b3e5-49a30a742a7b/preview.webp)
![Filter by User's Watched Status](/img/1/filter-by-watched-status_1715810596993.jpeg?w=650)
Filtering By User's Watched Status
In this lesson, we'll learn how to add a filter to our user's watchlist allowing them to show only movies they have or have not watched.
![Video preview](https://videos.adocasts.com/bf3e123e-0f4c-4f68-8dcc-bdc6ce9c1a52/preview.webp)
![Tracking Watched Movies](/img/1/allowing-users-to-track-watched-movies_1715810469365.jpeg?w=650)
Allowing Users To Toggle A Movie As Watched
In this lesson, we'll learn how to allow users to toggle whether they've watched a movie or not within their watchlist.
![Video preview](https://videos.adocasts.com/c1df2600-42f6-4f64-af56-04695e184561/preview.webp)
![Listing and Filtering User Watchlist Items](/img/1/listing-and-filtering-watchlist-items-for-a-user_1715289606177.jpeg?w=650)
Listing and Filtering User Watchlist Items
In this lesson, we'll take our movie filter, and learn how we can reuse it to display a filterable list of the user's watchlist movies.
![Video preview](https://videos.adocasts.com/fffd7068-d4e9-4c15-b895-dd826ac36cb6/preview.webp)
![Toggling A Movie in an Authenticated User's Watchlist](/img/1/toggling-a-movie-in-an-authenticated-users-watchlist_1715288820404.jpeg?w=650)
Toggling A Movie in an Authenticated User's Watchlist
In this lesson, we'll learn how to add the ability to toggle whether a user has a movie within their watchlist. We'll also query and display whether a movie is in the authenticated user's watchlist as well.
![Video preview](https://videos.adocasts.com/dde7c981-8473-4836-9846-424c7210eab8/preview.webp)
![An Alternative Approach to Many-To-Many Relationships](/img/1/an-alternative-approach-to-many-to-many-relationships_1715288615499.jpeg?w=650)
An Alternative Approach to Many-To-Many Relationships
In this lesson, learn an alternative approach to many-to-many relationships that allows you to work directly with the pivot table as a model.
![Video preview](https://videos.adocasts.com/e3ff14e7-e11b-4b59-a035-e2a767b92e46/preview.webp)
![Pagination First, Last, Next, and Previous Buttons](/img/1/pagination-first-last-next-and-previous-buttons_1714944115567.jpeg?w=650)
Pagination First, Last, Next, and Previous Buttons
In this lesson, we'll take a look at how to add pagination links to the next and previous pagination pages. Then, we'll follow the same process to add links to the first and last pagination pages.
![Video preview](https://videos.adocasts.com/0c3db61a-4c17-429d-b4e1-2b0e9ecb30f5/preview.webp)
![How To Paginate Filtered Query Results](/img/1/how-to-paginate-filter-results_1714943963112.jpeg?w=650)
How To Paginate Filtered Query Results
In this lesson, we'll learn about AdonisJS Model Query Builder pagination and walk through an example of how we can easily paginate the results of our filtered movies.
![Video preview](https://videos.adocasts.com/fab3ed6f-2d0d-4d3e-8a16-a787d02274ce/preview.webp)
![Validating Query String Filter Values](/img/1/validating-query-string-filter-values_1714943830507.jpeg?w=650)
Validating Query String Filter Values
In this lesson, we'll learn how to use VineJS, AdonisJS' Validator, to validate the filter properties and values we have within our query string.
![Video preview](https://videos.adocasts.com/e467679d-6fa7-4bb6-9851-f4528105a1d1/preview.webp)
![Joining SQL Tables To Order By A Related Column](/img/1/joining-tables-to-order-by-a-relationship_1714514355183.jpeg?w=650)
Joining SQL Tables To Order By A Related Column
In this lesson, we'll learn how to join a related table into our query and use that table to apply a sort via the relationship. We'll then see how we can conditionally apply this join only when it's needed for the selected order by.
![Video preview](https://videos.adocasts.com/0ba33b0c-1e03-42cc-a6ca-e1d695af70ad/preview.webp)
![How To Apply A Dynamic Sort Filter To Your Query](/img/1/how-to-apply-a-dynamic-sort-filter_1714514184731.jpeg?w=650)
How To Apply A Dynamic Sort Filter To Your Query
In this lesson, we'll learn how we can add a user-selected sort option to our filters. Then, we'll apply the selected filter to our movie query
![Video preview](https://videos.adocasts.com/edf0c263-25d3-412c-a03d-ac44322375fd/preview.webp)
![Filtering Our List by Movie Status](/img/1/filter-our-list-by-movie-status_1714513909291.jpeg?w=650)
Filtering Our List by Movie Status
In this lesson, we'll alter our form input component to allow selects. Then, we'll learn how to add a select-based filter to our movie list page so that we can see only movies containing a specific movie status.
![Video preview](https://videos.adocasts.com/03ed95b5-9163-4320-b55c-822cf12ebad9/preview.webp)
![Filtering A Query By Pattern Likeness](/img/1/filtering-a-search-by-pattern-likeness_1714173269742.jpeg?w=650)
Filtering A Query By Pattern Likeness
In this lesson, we'll learn how to add a pattern filter to our movies.index page that will allow us to filter our movies list by title using a case-insensitive pattern search.
![Video preview](https://videos.adocasts.com/b6463a21-999a-459e-b04e-95c91b24ac25/preview.webp)
![Creating A Movie List Page](/img/1/listing-our-movies_1714172845749.jpeg?w=650)
Creating A Movie List Page
In this lesson, we'll create a page to list all of our movies. Since we have a lot of movies, in this module, we'll focus on adding filters and pagination to this list.
![Video preview](https://videos.adocasts.com/8cc97997-14aa-4a81-88d5-7d9905f4b1f7/preview.webp)
![Protecting Routes with Auth, Guest, and Admin Middleware](/img/1/protecting-routes-with-guest-auth-and-admin-middleware_1714172189592.jpeg?w=650)
Protecting Routes with Auth, Guest, and Admin Middleware
In this lesson, we'll learn about the auth and guest middleware included when we created our AdonisJS 6 project. Then, we'll create our own named middleware that will allow us to restrict page access to only users with the admin role.
![Video preview](https://videos.adocasts.com/30fdf2bb-e40c-46ab-b0c7-55de69548b11/preview.webp)
![Remembering A User's Authenticated Session](/img/1/remembering-a-users-authenticated-session_1713911437512.jpeg?w=650)
Remembering A User's Authenticated Session
In this lesson, we'll learn how we can use AdonisJS' Remember Me Tokens feature to allow a user to specify they'd like their authentication state to be remembered for a long time across sessions.
![Video preview](https://videos.adocasts.com/0326dd32-f026-4172-b5ad-3c615d9b4abf/preview.webp)
![Logging In An Existing User](/img/1/logging-in-an-existing-user_1713910916927.jpeg?w=650)
Logging In An Existing User
In this lesson, we'll learn how we can login an existing user using just their email and password. We'll discuss how the AuthFinder mixin protects us from timing attacks, and how we can use it to verify the accuracy of a user's password.
![Video preview](https://videos.adocasts.com/8a4cc3b8-1160-4ccf-90a5-1ab701e95ae5/preview.webp)
![Logging Out An Authenticated User](/img/1/logging-out-an-authenticated-user_1713910484545.jpeg?w=650)
Logging Out An Authenticated User
In this lesson, we'll learn how to logout an authenticated user using a POST request with CSRF protection.
![Video preview](https://videos.adocasts.com/32c92812-4568-444c-a5ae-bd33b7adb5d4/preview.webp)
![Checking For and Populating an Authenticated User](/img/1/checking-for-and-populating-an-authenticated-user_1713558061741.jpeg?w=650)
Checking For and Populating an Authenticated User
In this lesson, we'll create a silent auth middleware that will automatically check whether a request has an authenticated user attached to it, and populate that user's details if one is found.
![Video preview](https://videos.adocasts.com/0236fb26-92a4-4f33-8d46-7f9c5ee2ec2f/preview.webp)
![Authenticating A Newly Registered User](/img/1/authenticating-a-newly-registered-user_1713557940626.jpeg?w=650)
Authenticating A Newly Registered User
In this lesson, we'll learn how we can authenticate, or login, a new user who just registered with our application. We'll then see how we can populate the authenticated user's details on subsequent requests.
Showing 21 to 40 of 250 results