Databases for Node.js Developers (2021)
3h 35mIntermediate2021-01-21
Authors

Daniel Khan
Technology Lead, Developer, Application Architect
Course details
Node.js developers often consider MongoDB to be their main choice when building a data-driven application—but many alternatives may provide better solutions. In this course, learn about the various database options available for Node.js applications, so that you can select the right database for your app. Daniel Khan reviews the basics of relational and nonrelational databases, and explains how—and when—to use document databases with Node.js. He also covers using key-value stores and relational databases with Node.js, demonstrating how to work with MySQL and Sequelize.
Skills covered
RedisMongoDBMySQLNode.jsJavaScript FrameworksDatabase DevelopmentDatabase ManagementPersonaWeb DevelopmentOpen SourceSoftware Development
Concepts
0. Introduction
- 01 - Learn to create real database applications with Node.js
- 02 - What you should know
1. Getting Started
- 03 - Getting your tools ready
- 04 - Loading the exercise files from GitHub
- 05 - Set up and understand the maxcoin sample app
- 06 - Set up and understand the shopper sample app
2. Understanding Databases
- 07 - Database basics
- 08 - Understand relational databases
- 09 - Understand NoSQL databases and key-value stores
3. Use Document Databases with Node.js
- 10 - When to use and not to use document databases
- 11 - Set up MongoDB
- 12 - Connect to MongoDB
- 13 - Insert data into MongoDB
- 14 - Query data from MongoDB
- 15 - Introduction to Mongoose
- 16 - Add MongoDB and Mongoose to your project
- 17 - Define your first schema and model
- 18 - Prepare the item management system
- 19 - Implement all database methods
- 20 - Implement the user management system
- 21 - Encrypting passwords
4. Use Key-Value Stores with Node.js
- 22 - Introduction to key-value stores
- 23 - Set up Redis
- 24 - Use Node.js with Redis
- 25 - Add Redis to your project
- 26 - Session management in Express
- 27 - Add Redis sessions to your project
- 28 - Implement a basket service
- 29 - Add the basket to the page
5. Use Relational Databases with Node.js
- 30 - When to use relational databases
- 31 - Set up MySQL
- 32 - Create a database schema
- 33 - Use Node.js with MySQL
- 34 - Introduction to Sequelize
- 35 - Add MySQL and Sequelize to your project
- 36 - Review the database design
- 37 - Create sequelize models
- 38 - Review the auto-generated database structure
- 39 - Implement an order service
- 40 - Add order management
Conclusion
- 41 - Next steps
Related courses
- Databases for Node.js Developers
- AWS for Developers: RDS MySQL Database with Lambdas
- AI Programming for JavaScript Developers
- Express Essentials: Build Powerful Web Apps with Node.js
- MongoDB Node.js Developer Associate Cert Prep
- Build AI Agents with Model Context Protocol (MCP) by Pearson
- Build a Faster, More Structured Express API with Node.js and TypeScript
- MongoDB for MEAN Stack Developers