undefined

Services

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.

5 Series
19 Lessons
Services icon

Let's Learn AdonisJS 6

In this series, we'll learn AdonisJS 6 step-by-step in a beginner-friendly way. Covering topics like routing, controllers, services, EdgeJS, Lucid ORM, forms, filtering, authentication, etc.

113 Lessons
14h 15m

Let's Learn AdonisJS 5

Learn AdonisJS 5 in-depth as we step through all the major functionalities of the framework in-depth. Learn about Routing, Controllers, Lucid, Auth, and much more.

29 Lessons
5h 3m

Let's Build A Changelog App

We'll be building a changelog application with AdonisJS through a series of livestreams.

5 Lessons
9h 8m

Let's Build with AdonisJS

Livestreams where we build applications using AdonisJS 5. Starting out, we'll be rebuilding Adocasts, formerly called Jagr.Co.

12 Lessons
21h 39m

Let's Learn AdonisJS 5 Preview

In this series, we'll be doing a deep-dive into AdonisJS 5's Preview version. We'll learn about routing, controllers, the Lucid ORM, migrations, it's CLI, handling file uploads, transactional email, and much more.

16 Lessons
3h 37m
Video preview
Adocasts Plus Exclusive
Exclusive
Meilisearch Service
Video preview

Creating A Meilisearch Service to Initialize Admin & Search Instances

In this lesson, we'll create a singleton Meilisearch service to simplify operations against our Meilisearch database by allowing us to specify whether we want to simply search or perform an admin authorized operation.

Video preview
What Can We Share?
Video preview

What Code Can & Can't Be Shared Between AdonisJS & Inertia

In this lesson, we'll discuss what code we can and cannot share between AdonisJS and Inertia.

How To Make A Simple AdonisJS 6 Package
How To Make A Simple AdonisJS 6 Package

How To Make A Simple AdonisJS 6 Package

In this lesson, we'll learn how to use AdonisJS' Package Starter Kit to create a simple package where we can configure and add a make:action Ace CLI command to generate action class files, similar to the make:service command.

Organizing your AdonisJS Logic
Organizing your AdonisJS Logic

Three Approaches for Organizing your AdonisJS Business Logic Operations

In this lesson, we'll dive deep into three different ways we can organize our code; fat controllers, services, and actions. We'll also discuss circular dependencies, static and non-static service methods, and dependency injection.

Video preview
Managed Transactions and Syncing Movie Cast Members
Video preview

Managed Transactions and Syncing Movie Cast Members

In this lesson, we'll learn how we can use what we learned in the last lesson to also sync our cast members. We'll then extract this functionality into a service and wrap it within a managed database transactions.

Video preview
Download Storage Images
Video preview

Using A Wildcard Route Param to Download Storage Images

In this lesson, we'll learn how we can utilize a wildcard route parameter to dynamically download images that've been uploaded and stored within our application storage.

Video preview
Uploading Movie Cover Images
Video preview

Uploading Movie Cover Images in our Create or Edit Form

In this lesson, we'll learn how to upload movie cover images when either creating or editing a movie via our create or edit form.

Video preview
One Form to Create or Edit Movies
Video preview

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
Video preview

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).