Launch Your AdonisJS Skills to the Stars

Series.

Step-By-Step Learning

Topics.

Subject-Based Learning

Lessons.

Here's What's New
Video preview
Adocasts Plus Exclusive
Exclusive
Simple API Versioning

Simple API Versioning

In this lesson, we'll implement a simple versioning mechanism for our API. Versioning allows us to safely make breaking changes without breaking our user's implementations of our API.

Video preview
Adocasts Plus Exclusive
Exclusive
Setting up our REST Client

Setting Up Our REST Client

In this lesson, we'll take some time to get set up and get comfortable with a REST Client application. This will allow us to store our API endpoints within collections to simplify testing them as we build them out. In this series, I'll be using Hoppscotch

Video preview
Adocasts Plus Exclusive
Exclusive
Our first API endpoint

Our First API Endpoint to Get Our Organization's Details

In this lesson, we'll add the first endpoint to our API. With this endpoint we'll return back the Organization's details for the provided Access Token with the request.

Video preview
Adocasts Plus Exclusive
Exclusive
Goal of our API

The Goal of our REST API

In this lesson, we'll briefly give an overview of REST and how we'll be taking a practical approach to it when building our API.

Video preview
Adocasts Plus Exclusive
Exclusive
Deleting Access Tokens

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
Copying the Access Token

Displaying & Copying A Newly Created Access Token

In this lesson, we'll add a secondary step to our access token creation flow that will display the newly created access token to the user one time, allow them to copy the token, then drop the token completely from memory.

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.

Blogs.

Odds and Ins

What's New in Adocasts V3

We're now rocking AdonisJS 6 with a fresh redesign to boot! We'll introduce "The Feed" and discuss a few new Adocasts Plus perks.

Snippets.

Bite Sized Code
Adocasts Plus
Launch Into AdonisJS
  • Unlock all series, lessons, and assets
  • 2 weeks early access to new lessons
  • Feed posts shared across the site
  • Ad-free site experience
  • Submit ads to run across the site
  • Renewal reminders; cancel anytime
Adocasts Plus

Monthly

$8

/ month

Take things month-by-month with one low price to unlock everything!

Get Started
Adocasts Plus

Annually

$80

/ year

Take things year-by-year with one low price to unlock everything!

Get Started
Adocasts Plus

Forever

$285

/ lifetime

Hate subscriptions? Me too! Pay once, then never again with our forever plan.

Get Started