Databases for Node.js Developers (2021)

Databases for Node.js Developers (2021)

3h 35mIntermediate2021-01-21

Authors

Daniel Khan

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

Introduction

  • Learn to create real database applications with Node.js
  • What you should know

Getting Started

  • Getting your tools ready
  • Loading the exercise files from GitHub
  • Set up and understand the maxcoin sample app
  • Set up and understand the shopper sample app

Understanding Databases

  • Database basics
  • Understand relational databases
  • Understand NoSQL databases and key-value stores

Use Document Databases with Node.js

  • When to use and not to use document databases
  • Set up MongoDB
  • Connect to MongoDB
  • Insert data into MongoDB
  • Query data from MongoDB
  • Introduction to Mongoose
  • Add MongoDB and Mongoose to your project
  • Define your first schema and model
  • Prepare the item management system
  • Implement all database methods
  • Implement the user management system
  • Encrypting passwords

Use Key-Value Stores with Node.js

  • Introduction to key-value stores
  • Set up Redis
  • Use Node.js with Redis
  • Add Redis to your project
  • Session management in Express
  • Add Redis sessions to your project
  • Implement a basket service
  • Add the basket to the page

Use Relational Databases with Node.js

  • When to use relational databases
  • Set up MySQL
  • Create a database schema
  • Use Node.js with MySQL
  • Introduction to Sequelize
  • Add MySQL and Sequelize to your project
  • Review the database design
  • Create sequelize models
  • Review the auto-generated database structure
  • Implement an order service
  • Add order management

Conclusion

  • Next steps
80,000 Toman