Recently Released.

Newly Released in the last 30 days
Video preview
Adocasts Plus Exclusive
Exclusive
Listing Access Tokens

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
OAT vs JWT

Opaque Access Tokens (OAT) vs JSON Web Tokens (JWT)

In this lesson, we'll take a step back to understand the differences between the tokens we're using, which are Opaque Access Tokens (OAT), and JSON Web Tokens (JWT). We'll discuss security, scalability, and what makes up each token.

Video preview
Creating Access Tokens Part 2: VueJS

Creating Access Tokens Part 2: Inertia/Vue

In this lesson, we'll rig up the create access token route we created in the last lesson to a form within our Vue application. We'll also stub the overall manage access tokens card for the organization itself.

Video preview
Creating Access Tokens Part 1: AdonisJS

Creating Access Tokens Part 1: AdonisJS

In this lesson, we'll add a route to the settings portion of our application allowing the user to create an opaque access token (OAT), with the desired permissions, for the active organization.

Video preview
Access Token Abilities

Defining Access Token Abilities & DTO

In this lesson, we'll finish up our preparation work by creating a data transfer object (DTO) for our access tokens. Then, we'll define what our token abilities will be within our application's API.

Video preview
Separation of Concerns

Separation of API & Web Auth Guard Concerns

In this lesson, we'll restrict our routes to their applicable authentication guard. Ensuring our web routes can properly authorize using their role-based authorization and our API can properly authorize using our access token abilities.

Video preview
Configuring Api Authentication

Configuring Access Token Auth on top of Session Auth

In this lesson, we'll get opaque access tokens configured within our AdonisJS application on top of the already configured session/web authentication. This will include configuring the guard and setting up the db access token provider.

Video preview

Overview of our Database Schema

In this lesson, we'll take a high level look at our database's schema so that we have an understanding at the entities and models at play and how they relate to one another within our application.

Video preview
Getting Familiar with our Web Project

Getting Familiar with our Web Project

In this lesson, we'll quickly walk through the web application we've cloned down to get familiar with the data at play, how it's presented to the user, and the features at hand.

Video preview
Getting Up and Running

Getting the Web Project Up & Running

We'll get our web project cloned down. Then, we'll get it configured by first creating our database and running our migrations and seeder. Lastly, we'll get a test SMTP email inbox set up through MailTrap.

Video preview
Goal of this Series

Goal of this Series

We'll cover the scope of this series and show some of the functionalities we'll be building throughout, which include an access token management panel, opaque access token authentication using an organization model, and building an API.

Lessons.

Updating Content with HTMX
HTMX & AdonisJS Filters #4.0
・
Mar 26, 23

Posting & Swapping Filtered Content with HTMX

In this lesson, we'll utilize the filter form handler we defined in our last lesson by adding an HTMX post handler to our filter form that will retrieve the filtered results HTML and swap it with the pre-existing results.

AdonisJS Filter Form Handler
HTMX & AdonisJS Filters #3.0
・
Mar 26, 23

Defining Our AdonisJS Filter Form Handler

In this lesson, we'll expand on the filter query we built in the last lesson by reusing the query within a service for our filter form handler.

HTMX & AdonisJS Filters #2.0
・
Mar 26, 23

Creating Our Filter Query with AdonisJS

In this lesson, we'll create the route and query we'll need to get filtered results with our filter form using the Lucid ORM and AdonisJS.

Installing HTMX
HTMX & AdonisJS Filters #1.0
・
Mar 26, 23

Installing HTMX & Project Overview

In this lesson, we'll briefly outline the project structure and then install HTMX inside our project.

AdonisJS Model Query Builder Macro Favorites
AdonisJS Quick Tip #16.0
・
Mar 12, 23

Exploring My Favorite AdonisJS Model Query Builder Macros: Tips and Examples

In this lesson, I'll highlight a few of my favorite Model Query Builder Macros that I carry with me from project to project. Have a favorite of your own? Let me know in the comments!

Static Model Query Methods
Let's Learn AdonisJS 5 #5.9
・
Mar 09, 23

Easy Querying with Static Model Query Methods

In this lesson, we'll learn what static methods are available on our Lucid Models to help us easily query records from our database. These methods offer a convenient query option compared to the query builder.

subdomain sessions
AdonisJS Quick Tip #15.0
・
Mar 05, 23

How To Seamlessly Share AdonisJS Sessions & Authentication Across Subdomains

In this lesson, we'll learn how one simple tweak to our AdonisJS project allows us to seamlessly share sessions and user authentication across multiple subdomains, as well as our application's primary domain.

Model Hook Overview
Let's Learn AdonisJS 5 #5.8
・
Mar 01, 23

Password Hashing & Model Hook Overview

In this lesson, we'll learn briefly about the model hooks available and how they work. Then, we'll walk through an example by hashing our password anytime it is changed.

AdonisJS Creating Records
Let's Learn AdonisJS 5 #5.7
・
Feb 02, 23

Creating Records with Lucid ORM

In this lesson, we'll learn various ways we can create and bulk-create records using the AdonisJS Lucid ORM.

AdonisJS Model Relationships
Let's Learn AdonisJS 5 #5.6
・
Jan 27, 23

Defining Model Relationships

In this lesson, we'll learn how to define relationships on our Lucid Models. We'll cover one-to-one, many-to-one, one-to-many, and many-to-many relationship definitions.

Team / User Management
Let's Build A Changelog App #5.0
・
Jan 15, 23

Team / User Management

In this stream, we'll add the ability for admins to invite others to their team. They'll be able to either invite them as a member or another admin.

Remember Me Token
AdonisJS Quick Tip #14.0
・
Jan 12, 23

Remember Me in AdonisJS Authentication

In this lesson, we'll take a look at how to remember the user's authentication session in AdonisJS Auth. We'll learn how to define the remember me checkbox within our form and more.

Default Team
Let's Build A Changelog App #4.0
・
Jan 07, 23

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.

Migration to Model
Let's Learn AdonisJS 5 #5.5
・
Jan 05, 23

Database Migrations To Lucid Models

In this lesson, we'll walk through examples of transferring our database migrations into our Lucid Models. This will pave the way for us to begin CRUD operations in later lessons.

Schema to Migration
Let's Learn AdonisJS 5 #5.4
・
Dec 29, 22

Database Schema to Migration

In this lesson, we'll walk through a real-world example of a database schema and how to create migrations. We'll define each table's columns, primary keys, and foreign keys.

What is a model?
Let's Learn AdonisJS 5 #5.3
・
Dec 22, 22

What Is A Model?

In this lesson, we'll delve into AdonisJS Models learning what they are, what they represent, how to create them, what we can do with them, and more.

Redirect back after login
AdonisJS Quick Tip #13.0
・
Dec 18, 22

How To Redirect Back to the Previous Page After Login with AdonisJS

In this lesson, we'll learn an easy way we can redirect our user's back to their original page after they login or register in an AdonisJS application.

Let's Build A Changelog App #3.0
・
Dec 17, 22

Project CRUD

In this stream, we'll be defining our starting projects table schema, model, and setting up create, read, update, and delete (CRUD) operations for it.

Creating A Default Team After Sign Up
Let's Build A Changelog App #2.0
・
Dec 15, 22

Creating A Default Team After Sign Up

In this stream, we'll create a default team for users after signing up for our changelog application. After signing up, we'll take the user to a screen where they can update details on their default team.

AdonisJS HTML Minifier
AdonisJS Quick Tip #12.0
・
Dec 11, 22

Minify Your AdonisJS HTML in 5 Minutes

We'll learn how we can alter all our AdonisJS HTML response bodies using a simple global middleware to add HTML minification.

Showing 261 to 280 of 379 results