
Explore end-to-end ORM support in node.js using Prisma, TypeORM, Sequelize, and Mongoose, cover migrations, relationships, query builder, and integration with NestJS and Express.
Explore how nodejs apps use orm, odm, and query builders to interact with databases, and compare an ORM like Prisma or TypeORM offering schema migration, security, and type safety.
Explore TypeORM, a TypeScript-friendly ORM for NestJS with active record and data mapper patterns, robust migrations, and entity relationships managed via repositories.
Explore Node.js databases with popular orms and query builders like TypeORM, SQLize, Next, Prisma, and Mongoose, including migrations, seeders, and one-to-one, one-to-many, and many-to-many relationships.
Learn to connect Node.js to MySQL without an ORM using docker compose, create a pool, and perform insert, update, delete, and select queries with Express routes against a users table.
Learn how to build a Node.js rest api with MongoDB using the native client, without orm, performing basic queries, and deploying with Docker.
learn to connect node.js to postgres with the pg client, build a simple express api, and perform crud using raw sql queries.
Learn to connect Node.js to MySQL without an ORM using the mysql client and docker compose, perform CRUD on a users table, and expose routes with express.
Compare Node.js ORMs: knex, TypeORM, Sequelize, and Prisma, and learn when a query builder suits a shopping cart API with migrations and seeders.
Explore TypeORM, a NodeJS ORM for Postgres and other databases, and learn to connect, migrate, define entities, and manage relationships with active record and data mapper patterns, including NestJS integration.
Pair TypeORM with Prisma in a practical Node.js course, exploring TypeORM architecture, data source and entity patterns, active record and data mapper, repositories, relations, and CRUD with Express and NestJS.
Set up development environment by installing node.js (via nvm or direct), Docker Desktop to run MongoDB, PostgreSQL, and MySQL in containers, and using VS Code and database tools for exploration.
Understand how object relational mapping works and how type orm uses entities, repositories, and a data source to simplify database access while boosting type safety and security.
Create a TypeORM data source, define entities, and use the repository and query builder for where, order by, get many, and raw queries via app data source.
Explore TypeORM's TypeScript-first design, migration schemas, and multi-database cross-platform support. Learn data mapper and active record patterns with repositories and data sources.
Set up a PostgreSQL database for a node.js typeorm project using docker or docker compose, configuring environment variables and TypeORM in the project to establish connections on port 5432.
Learn to bootstrap TypeORM with express in a monorepo, configure a data source from env vars, and use the repository pattern with entities and migrations to manage database tables.
Configure typeorm connections and migrations with .env credentials for three entities, use the migration CLI, then bootstrap a postgres docker container and inspect the database with table plus.
Build a TypeScript Express app with TypeORM to read and write data in Postgres, initialize data source, entities, migrations, and repositories, and explore the TypeORM CLI workflow.
Learn how to use the TypeORM CLI to manage migrations, including migration create, migration generate, migration run, and migration revert, with entities, migrations, and schema sync safety.
Explore how to define TypeORM entities for users, products, and companies, enable jsonb and indexes, and manage migrations vs sync in a monorepo with pnpm.
Explore a monorepo using a pnpm workspace with symlinked node_modules, enabling recursive builds and shared dependencies across demos; learn repository patterns with NestJS, Express TypeScript, and TypeORM.
Extend the TypeORM repository pattern to build a dao layer in a Node.js express app. Create a user repository with find active, by email, pagination, and custom filters.
Build a clean Express TypeScript app with routes, controllers, services, and middleware, wired to a TypeORM data source with entities and repositories for Postgres, enabling CRUD operations.
Run a simple TypeORM and Express app with Postgres, exposing APIs for create, fetch, update, delete, and restore users; test with Swagger and Postman.
Master how to create and run TypeORM migrations with the CLI, including writing migration files, configuring data source.ts, and tracking migrations in the migration table.
Explore how TypeORM defines one-to-one, one-to-many, many-to-many, and many-to-one relationships between user, profile, post, and tag, and how foreign keys and join tables reflect them in the database.
Explore TypeORM query builder examples to craft custom queries, joins, aggregations, and subqueries on user and post entities, including left joins, group by, pagination, and updates.
Explore soft delete in TypeORM by marking records with a deleted_at timestamp, excluding them from finds, and restoring or querying with withDeleted and onlyDeleted options.
Learn how to integrate TypeORM with NestJS, configuring modules, entities, and repositories for a NestJS app. Use environment-based config and repository injection for CRUD operations.
Explore TypeORM transactions in three modes: manager-based with app data source transaction, manual query runner with commit and rollback, and auto-managed transactions via try-catch, for simplicity and di compatibility.
Explore prisma, a node.js TypeScript ORM, with Prisma schema, Prisma client, and Prisma migrate for migrations, supporting PostgreSQL, SQLite, MySQL, SQL Server, CockroachDB, and MongoDB.
Explore Prisma fundamentals, set up with TypeScript Node.js, and use Prisma CLI workflows for migrations, generate, push, and Studio; model data with schema and define relations across frameworks and databases.
Prisma introduces a three-part architecture—Prisma schema, Prisma Client, and Prisma Engine—to model data like users and posts, then use the Prisma CLI to configure the database and generate the client.
Initialize a prisma project with prisma init, define the prisma schema, configure the .env database URL, migrate to create user and course tables, and generate the prisma client.
Define prisma schema with enums and tables, then run migrations to create database tables and generate a client. Access the generated models to work with relations, keys, and indexes.
Learn Prisma CLI commands to initialize, generate the client, migrate, dev, push, pull, and use Prisma Studio and format in a monorepo workflow.
Explore hands-on prisma demos in a pnpm workspace, learn to install, generate prisma client, migrate, and run index.ts to perform operations on the user table.
Learn how Prisma schema defines relationships between user, profile, post, and task, and how migrations create the database, generate the Prisma client, and fetch related data with include and select.
Explore prisma schema relationships, including one-to-one user-profile, one-to-many posts and comments, many-to-many tags, and self-referencing followers, with practical migration and querying examples.
Visualize database diagrams with dbdiagram.io to map a blog schema's primary and foreign keys and relationships, such as one-to-one, one-to-many, and many-to-many.
Learn how to perform CRUD with Prisma Client on a two-table user-post schema, using create, update, delete, find, and upsert, including creating related posts.
Explore Prisma migrations with a practical demo, generating and applying schema changes across dev and production using migrate dev and migrate deploy, generating the Prisma client and running dbseed.
Explore Prisma ORM for Node.js and TypeScript, building REST APIs and GraphQL interfaces with Express and NestJS across Postgres, MongoDB, and SQLite.
Explore prisma, the prisma schema, and prisma client; learn how prisma migrate and prisma generate auto-create typings and migrations for Postgres, MySQL, and MongoDB in node apps.
Define Prisma schema models and run migrations to create tables and relationships, then generate the Prisma client for querying, with examples like users, posts, playlists, and categories.
Explore setting up a fresh Express TypeScript app with Prisma ORM for PostgreSQL, generating the Prisma client, migrating schemas, and building API operations for users, articles, tags, and comments.
Build a node js api with prisma ORM and prisma client operations. Implement express ts server with auth flows, password hashing, token generation, and protected routes to get current user.
Builds a Node.js API for articles with Prisma, handling create, update, and get by slug while linking authors and tags via connect or create.
Learn to build Express APIs with Prisma, handling articles, comments, favorites, and follows, using connect, disconnect, and include for rich responses.
Discover Prisma with MongoDB NoSQL in a simple Express TypeScript app, generate a Prisma client for user, post, tag models, and implement register to login and token auth.
Connect Prisma to MongoDB Atlas, set up a simple user collection and auth APIs. Handle access and refresh tokens via cookies to secure sessions.
Learn NestJS API development with Prisma and Postgres, implementing secure authentication flows using local and JWT strategies, cookies, guards, and user data retrieval, plus Prisma-based post creation.
Develop Node.js APIs using knex js as a lightweight query builder, performing migrations and CRUD operations across sql databases, and integrating with Next.js for API development.
Build a Node.js backend with Next.js for database queries, install dependencies, configure .env, and run migrations and seeds for Postgres, SQLite, and Express.
Learn to build a Node.js API with Knex.js by creating a to-dos table with migrations, Express routing, and a data layer for CRUD operations.
Learn how to implement database migrations with Knex, creating users, countries, merchants, products, orders, and order items, and define foreign keys, indexes, and proper migration order.
Build a simple shopping cart with Node.js and knex, creating migrations for users, products, and cart with foreign keys, and define routes, daos, and login workflow.
Master Knex basics for migrations, queries, joins, seeds, and transactions, including table creation, where clauses, and returning results in a Next.js environment.
Learn to build full-stack APIs with MongoDB using Mongoose, an object data mapper, modeling users, posts, and comments, and managing one-to-one, one-to-many, and many-to-many relationships.
Define schemas and models with Mongoose to structure MongoDB documents. Learn to perform save, find, update, and delete operations with validation and middleware in Node.js.
Explore Node.js ORM and ODM landscapes with Mongoose for MongoDB, comparing Prisma, TypeORM, and other tools while building REST or GraphQL APIs and a swiggy-like order management app.
Explore how to model one-to-one relationships in MongoDB using Mongoose, including reference-based and embedded approaches, and see practical code workflows with customer, payments, and identifiers.
Explore one-to-many relationships in Mongoose and Node.js by building a blog-like tutorial system with categories, comments, images, and an author, using references and populate to fetch related data.
Demonstrates modeling a many-to-many relationship in MongoDB with Mongoose using tutorial and tag collections, linking via arrays of object IDs and populating relationships.
Learn to integrate Mongoose with Nest.js by wiring MongoDB with MongooseModule.forRootAsync, defining models as classes with Nest.js annotations, and injecting them into services for create, read, update, delete.
Develop NestJS APIs using Prisma ORM with Postgres within a Node.js environment to demonstrate Prisma usage.
Demonstrates connecting Prisma with a MongoDB Atlas cluster, showing a simple user creation and login flow with access and refresh tokens, via a cloud MongoDB setup. Highlight connection strings.
Build a NestJS API with Prisma and PostgreSQL using cookie-based JWT. Implement login, register, and logout flows with guards and a Prisma post service for creating, updating, and deleting posts.
Explains how to apply 12-factor app principles to NestJS microservices, covering deployment, configuration, stateless processes, and proper environment parity. Demonstrates environment segregation, migrations, and CICD practices.
Bootstrap a NestJS microservice following 12 factor principles using Docker, TypeORM, and Postgres. Create a baseline with controllers, entities, migrations, tests, and Docker configurations.
Add Swagger API tags and operations for NestJS routes with validation pipes. Implement dto validations using class-validator for UUID IDs.
Develop unit tests for NestJS controllers and services with Jest, using mocks and spies, to cover create, read, update, delete, and progress to end-to-end and integration tests.
Explore 12 factor principles in NestJS microservices using different ORMs such as TypeORM, Sequelize, Mongoose, and NAICS, with focus on security, logging, and deployments.
Explore NestJS as a clean, modular backend for rest and GraphQL APIs, integrating TypeORM, SQLite, and Mongoose with DTO validation and Angular-inspired modules.
Master NestJS with TypeORM by configuring migrations, seeding, and module-based architecture for microservices. Apply best practices for error handling, swagger documentation, production ready code, and zero-downtime deployment with PM2.
Learn how to use NestJS with a knex-like next query builder for Postgres, wiring a dynamic database module and performing table operations, joins, and migrations.
Learn to integrate SQLize with NestJS, define entities and associations, configure a Postgres database connection, and manage migrations and environment-specific settings.
Build nodejs apis with the sequelize orm for mysql or sqlite, and manage migrations, seeders, validations, and relational mappings using express.
Explore relational databases with MySQL, including tables like customers, categories, products, and cart, and learn about primary keys, foreign keys, and one-to-many relationships using a Node.js MySQL client.
Define a user schema with uuid primary key, name, and bio; connect to mysql with sequelize, and use connection.sync to drop and recreate the table with created_at and updated_at.
Explore the benefits of using an orm in nodejs, covering sqlitejs connections, model definitions, associations, and the role of migrations, seeders, validations, and hooks for robust data management.
Explore how sequelize offers a promise-based ORM to define schema models, map them to mysql tables for CRUD, and model one-to-one relationships like user and post.
Seed the user and post tables in sqlite with sequelize sync and bulk create, establishing a one-to-one relation via user id and inserting sample name, email, password, and address.
Seed data with Sequelize by defining user and post models, establishing a has one relationship, and using bulk create to insert 100 users and posts with error handling.
Explore Sequelize ORM by organizing schema models for user, post, and comments, defining one-to-many associations, and using find by id, find all, and bulk create to seed data.
Explore sequelize schema modeling, data validation, hooks, and relationships, with type mapping to mysql and common create, find, and query methods.
Sequelize ORM maps JavaScript objects to SQL tables via models, defining types, defaults, primary keys, and validations with hooks for before validate and before create.
Define three sequelize models: cook, recipe, and feedback, and expose express routes for CRUD. Establish one-to-many associations and include data, laying out the table structures and APIs in part 1.
Define one-to-one cook-recipe and one-to-many recipe-feedback relationships in Sequelize ORM, seed data, and fetch recipes with their cooks and feedback using include and aliases.
Learn how to define and fetch one-to-one and one-to-many associations in Sequelize, including hasOne, belongsTo, and includes to retrieve recipes with their cooks and feedback.
Explore Sequelize ORM table associations among user, task, and tool, where users have many tasks and tools and tasks belong to a user, with eager loading and migrations.
Learn to organize sequelize models in a dedicated models folder, initialize with sequelize init, and use migrations, seeders, and dynamic model loading for scalable schema management.
Explore sequelize migrations, db create, db drop, db migrate, and seeders to manage schema and data. Learn up and down functions, and query interface methods like create table and bulk insert.
Learn how to initialize Sequelize for migrations and seeders, seed data safely with query interface, manage unique constraints, define associations, and run automated tasks via package.json.
Master how to implement a Sequelize migration using the use-task approach within the Sequelize ORM, demonstrated through a practical migration example.
Define SQLite models and establish relationships between user, context, and task using Sequelize migrations, seeding data with up operations and removing columns with down operations.
Identify and implement Sequelize associations for a shopping cart app, linking customers, orders, products, and payments with one-to-many and belongs-to relationships, via migrations, models, and seeders.
Define sequelize migrations to model one-to-one and one-to-many relationships among payments, orders, customers, and products. Add foreign keys and associations, run migrations, and prepare for a React frontend.
Are you ready to become a database expert in the Node.js ecosystem?
Master database management in Node.js with hands-on projects using Prisma, TypeORM, Knex.js, Sequelize ORM, and MongoDB/Mongoose - Build production-ready applications
This comprehensive course takes you from beginner to advanced level in working with databases using Node.js. You'll master the five most popular ORMs and database tools used in modern Node.js development: Prisma, TypeORM, Knex.js, Sequelize, and MongoDB with Mongoose.
Why This Course?
In today's backend development landscape, choosing the right ORM can make or break your project. Each ORM has its strengths, use cases, and trade-offs. This course gives you hands-on experience with ALL major options so you can:
- Make informed decisions about which ORM fits your project
- Switch between ORMs confidently in different job roles
- Understand the underlying concepts that apply across all database tools
- Build production-ready applications with best practices
What Makes This Course Different?
Practical, Project-Based Learning - Every concept is demonstrated with real code examples
Comparison Approach - See how the same operations work across different ORMs
Production Patterns - Learn migrations, transactions, relationships, and optimization
Modern Stack - TypeScript, Express, NestJS integration included
SQL & NoSQL - Cover both relational databases and MongoDB
Course Structure
Part 1: TypeORM
- Setup and configuration with TypeScript
- Entities, repositories, and data mapper pattern
- Relations (One-to-One, One-to-Many, Many-to-Many)
- QueryBuilder for complex queries
- Migrations and schema management
- Transactions and error handling
- Integration with Express and NestJS
Part 2: Prisma
- Prisma schema and data modeling
- Prisma Client and type-safe queries
- Relations and nested operations
- Migrations with Prisma Migrate
- Prisma Studio for database management
- Advanced filtering and pagination
Part 3: Sequelize
- Model definitions and validations
- Associations and eager loading
- Raw queries and transactions
- Hooks and lifecycle events
- CLI tools and migrations
Part 4: Knex.js
- Query builder fundamentals
- Schema building and migrations
- Raw SQL when needed
- Connection pooling
- Integration patterns
Part 5: MongoDB & Mongoose
- Document modeling with schemas
- CRUD operations
- Relationships (embedding vs referencing)
- Aggregation pipeline
- Indexing and performance
- Mongoose middleware and virtuals
Technologies Covered
- Node.js & TypeScript
- PostgreSQL & MySQL
- MongoDB
- Express.js & NestJS
- Docker for database setup