Services icon

Services

5 Series
12 Lessons
1h 47m

Services provide a way to write easily reusable code. They also provide a way to help streamline other portions of your code like controllers and route handlers. Most often they're grouped by topic.

Series.

Lessons.

Adocasts Plus Exclusive
Free in 13 days
One Form to Create or Edit Movies
Let's Learn AdonisJS 6 #11.5
Jun 15

How To Use One Form to Create or Edit Movies

In this lesson, we'll learn how we can merge our create form and edit form together into a create or edit form. We'll conditionally determine whether we'll be creating or editing based on our movie value and use EdgeJS features to simplify the process

Video preview
Allowing Users To Edit Their Profile
Let's Learn AdonisJS 6 #10.1
May 29

Using Dependency Injection to Update A User's Profile

In this lesson, we'll learn how to allow users to edit their profiles. We'll also cover how we can inject the HttpContext into a service instance using Dependency Injection (DI).

Video preview
Filter by User's Watched Status
Let's Learn AdonisJS 6 #9.4
May 16

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
Listing and Filtering User Watchlist Items
Let's Learn AdonisJS 6 #9.2
May 10

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
Validating Query String Filter Values
Let's Learn AdonisJS 6 #8.5
May 06

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
Joining SQL Tables To Order By A Related Column
Let's Learn AdonisJS 6 #8.4
May 01

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
How To Apply A Dynamic Sort Filter To Your Query
Let's Learn AdonisJS 6 #8.3
May 01

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
Singleton Services and the Idea of Caching
Let's Learn AdonisJS 6 #2.12
Jan 31

Singleton Services and the Idea of Caching

In this lesson, we'll learn about singleton services and how to use them as a store to hold temporary information throughout our server's life by building a simple in-memory caching service.

Video preview
Let's Learn AdonisJS 6 #2.9
Jan 27

Extracting Reusable Code with Services

In this lesson, we'll learn about services and how we can use them to extract reusable code in a way that makes it super simple to use throughout your project.

Let's Learn AdonisJS 5 #4.0
Feb 05, 22

Service Providers & The IoC Container

We'll learn about Service Providers and how they interact with the IoC Container. We'll then put this to practice by wrapping a NodeJS package so it's easy to use within AdonisJS

Static, Non-Static, and IOC Services
Let's Learn AdonisJS 5 #3.2
Jan 24, 22

Static, Non-Static, & Singleton Services

We'll learn what services are. We'll then discuss three different ways we can use them within our AdonisJS application, including static, non-static, and singleton services.

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.