Use OceanBase in Node.js: Build a CRM with Sequelize and Express

Wayne S.
Wayne S.
Published on August 4, 2023
10 minute read
Key Takeaways
  • This tutorial builds a mini-CRM from scratch using OceanBase as the database, Sequelize as the ORM (via the MySQL driver), and Express as the API server — covering project setup, model definition, and full CRUD routes.
  • OceanBase is MySQL-compatible, so Sequelize connects with dialect: "mysql" and the mysql2 driver — no custom adapter needed. sequelize.sync() auto-creates tables, and all standard Sequelize methods (findAll, create, update, destroy) work out of the box.
  • By the end you'll have a running REST API on port 3000 that creates, reads, updates, and deletes contacts in OceanBase, testable with Postman or Thunder Client.
Share
X
linkedin
ICON_SHARE
mail