Book Image

Supercharging Node.js Applications with Sequelize

By : Daniel Durante
4 (1)
Book Image

Supercharging Node.js Applications with Sequelize

4 (1)
By: Daniel Durante

Overview of this book

Continuous changes in business requirements can make it difficult for programmers to organize business logic into database models, which turns out to be an expensive operation as changes to the database may result in errors and incongruity within applications. Supercharging Node.js Applications with Sequelize helps you get to grips with Sequelize, a reliable ORM that enables you to alleviate these issues in your database and applications. With Sequelize, you'll no longer need to store information in flat files or memory. This book takes a hands-on approach to implementation and associated methodologies for your database that will have you up and running in no time. You'll learn how to configure Sequelize for your Node.js application properly, develop a better sense of understanding of how this ORM works, and find out how to manage your database from Node.js using Sequelize. Finally, you'll be able to use Sequelize as the database driver for building your application from scratch. By the end of this Node.js book, you'll be able to configure, build, store, retrieve, validate, and associate your data from a database to a Node.js application.
Table of Contents (16 chapters)
1
Part 1 – Installation, Configuration, and the Basics
4
Part 2 – Validating, Customizing, and Associating Your Data
10
Part 3 – Advanced Queries, Using Adapters, and Logging Queries

Index

As this ebook edition doesn't have fixed pagination, the page numbers below are hyperlinked for reference only, based on the printed edition of this book.

A

access-control lists (ACLs) 6

admin dashboard routes

securing 215, 217

AdminJS

about 188

configuring, with Sequelize 188-193

installing, with Sequelize 188-193

integrating, with Sequelize 188-193

AdminJS, PropertyOptions

reference link 192

advanced association options

using 112

Advanced RISC Machine (ARM) 13

Airplane model

validations, adding to 84-87

allowNull option 78-80

AlpineJS

about 217

URL 217

ARRAY data type 51

association methods

BelongsTo 98

BelongsToMany 98

HasMany 98

hasOne 98, 99

renaming 100, 101

associations

about 38

applying, to Avalon Airlines 122-126

lifecycle events, using with 136-138

querying, with eager loading 109-112

querying, with lazy loading 109

scopes, using with 112...