undefined

Actions

An action is a distinct, defined function or task that a program can perform. It's often a smaller, more specific operation than a full service, designed to execute a singular purpose, like processing a form submission or sending an email.

2 Series
36 Lessons
Action

Adding an API to an AdonisJS Web App

In this series, we'll add a API, using Opaque Access Tokens for authentication, to a preexisting web application. We'll implement dual-guard authentication, add a token management panel, and authenticate our API directly with an organization model!

43 Lessons
5h 31m

Building with AdonisJS & Inertia

We'll learn how to use InertiaJS with AdonisJS 6 to build a feature-complete application, called PlotMyCourse. Our application will use server-side rendering (SSR), Vue 3, and Shadcn-Vue. It'll feature organizations, drag-and-drop, and lots of forms.

91 Lessons
14h 5m
Video preview
Adocasts Plus Exclusive
Exclusive
Reusing Search Courses
Video preview

Making our Search Course Action Easily Reusable

In this lesson, we'll make our search course filters optional to increase the reusability of our action. We'll then switch our courses index route handler to use this action.

Video preview
Adocasts Plus Exclusive
Exclusive
Basic Course Filtering
Video preview

Basic Course Search & Filter

In this lesson, we'll add a new search endpoint for our courses and enable some basic filter functionality along with it. We'll be able to search by course name likeness, status, difficulty, and/or access level.

Video preview
Adocasts Plus Exclusive
Exclusive
Get Modules Endpoint
Video preview

Getting Just Course Modules & Lessons

In this lesson, we'll remove our GET module route, using the except method on our resource. Then we'll refactor to add a GetModules action

Video preview
Adocasts Plus Exclusive
Exclusive
Creating, Updating, and Deleting Courses
Video preview

Creating, Updating, and Deleting Courses

In this lesson, we'll add endpoints to allow creating, updating, and deleting courses from our API. We'll then use this to stub a number of test courses to give us wiggle room to play with our pagination.

Video preview
Adocasts Plus Exclusive
Exclusive
Deleting Access Tokens
Video preview

Deleting/Revoking Access Tokens

In this lesson, we'll add the ability for our users to revoke an access token by deleting it out of our database.

Video preview
Adocasts Plus Exclusive
Exclusive
Listing Access Tokens
Video preview

Listing an Organization's Access Tokens

In this lesson, we'll query all of our organization's access tokens and filter out any tokens that are expired. Then, we'll list the organization's tokens showing it's name, abilities, when it was created, and when it was last used.

Video preview
Adocasts Plus Exclusive
Exclusive
Rate Limiting Login Attempts
Video preview

Restricting Login Attempts with Rate Limiting

In this lesson, we'll add AdonisJS' Rate Limiter to our web login action to restrict the number of times a user can attempt to login to our application with invalid credentials.

Video preview
Adocasts Plus Exclusive
Exclusive
Canceling an Organization Invite
Video preview

Canceling an Organization Invite

In this lesson, we'll add the ability to cancel a sent invitation to an organization.

Video preview
Adocasts Plus Exclusive
Exclusive
Sending an Invitation to Join Our Organization
Video preview

Sending an Invitation to Join Our Organization

In this lesson, we'll begin our organization invite system by first adding the ability to send an invitation email to join our organization.