undefined

Lucid

Lucid is AdonisJS' Object Relational Mapping (ORM). It's a first-party package that follows the active record pattern. With it you can easily perform CRUD operations, add database hooks, normalize data, and so much more.

12 Series
163 Lessons
Database

Lessons

How To Serialize All AdonisJS Lucid Model Properties As Camel Case

In this lesson, we'll learn how to use Naming Strategies in AdonisJS to alter the serialization behavior for all our model properties from snake case to camel case.

AdonisJS Authentication in 15 Minutes

We'll be creating a new AdonisJS project and adding authentication to it within 15 minutes. You'll be able to logout, register, and login with either your username or email.

Rebuilding Jagr.Co, Adding Posts & SubCollections to Collections

In this stream, we focus on adding the ability to add posts and subcollections to a collection.

Rebuilding Jagr.Co, Post, Collection, & Taxonomy Models

In this stream, we focus on setting up the models and migrations for the Collection and Taxonomy models and tables. We set up their relationships and get the Collection CRUD operations setup

Rebuilding Jagr.Co, Password Reset & Account Locking

In this livestream, we'll add a system to lock users' accounts after so many bad login attempts and we'll also add in the password reset flow.

Rebuilding Jagr.Co, Username Sign In & Post CRUD

In this livestream we cover adding the ability to sign in using either a username or email address. We also dig into setting up the ability to create, read, update, and delete our posts.

Getting Data by the User's Timezone with Luxon's DateTime

In this lesson, we'll learn how we can use the user's current time zone to create, update, or query time-sensitive information in AdonisJS using Luxon's DateTime object.

Rebuilding Jagr.Co, Start & Auth

In this livestream we create a new project, install and configure the Lucid and Auth packages. Define our migrations and model schema. And hammer down basic authentication.

Project Setup & Creating Dummy Data

In this lesson, we'll be setting up our project with fake data using a Model Factory and a Seeder. We'll also set up our initial list of posts so that we're all set and squared away to cover

Let's Learn Adonis 5: Writing Reusable Queries with Query Scopes

In this lesson, we'll learn how we can extract repetitive query builder statements into reusable query scopes as a way to keep our codebase easy to maintain.

Let's Learn Adonis 5: Querying, Checking Existence, and Aggregating Relationships

In this lesson we'll learn how to query relationships, determine if a relationship exists, and how to aggregate relationship data.

Let's Learn Adonis 5: The Query Builder

In this lesson we'll be focusing specifically on the query builder. We'll discuss how we can filter down data, order, limit, and aggregate our data.

Let's Learn Adonis 5: Creating Data & Relationships Records

In this lesson, we learn about conditional inserts and how to reach through to relationships to create relationships and related records.

Let's Learn Adonis 5: Intro to Creating, Reading, Updating, and Deleting (CRUD)

In this lesson, we'll learn the two different modules Adonis' Lucid provides us to communicate with our database. We'll then introduce basic CRUD operations using these modules.

Let's Learn Adonis 5: Defining Model Relationships

In this lesson, we'll learn about the different types of database relationships, how Adonis supports these relationship types, and how to define these relationships.

Let's Learn Adonis 5: Intro to Models

This lesson is all about models. We'll learn what they are, how to define them, what they're used for, and some of the extended capabilities they provide.

Let's Learn Adonis 5: Installing and Configuring Lucid

In this lesson, we'll be learning how to install and configure Lucid, Adonis' Object-Relational Mapping (ORM) system, within our application.

Showing 145 to 161 of 161 results