- Node.js 6.x Blueprints
- Fernando Monteiro
- 147字
- 2021-07-14 10:35:03
Chapter 2. Build a Basic Website Using MySQL Database
In this chapter we will look at some basic concepts of a Node.js application using a relational database, in this case Mysql.
Let's look at some differences between Object Document Mapper (ODM) from MongoDB and Object Relational Mapper (ORM) used by sequelize and Mysql. For this we will create a simple application and use the resources we have available which is sequelize, a powerful middleware for creation of models and mapping database.
We will also use another engine template called Swig and demonstrate how we can add the template engine manually.
In this chapter we will cover:
- How to use the Swig template engine
- Changing default routes from an express generator to the MVC approach
- Installing Squelize-CLI
- How to use ORM with Sequelize Models
- Working with database migrations scripts
- How to dealing with MySQL database relations
推薦閱讀
- INSTANT Mock Testing with PowerMock
- Learning C# by Developing Games with Unity 2020
- Java應用與實戰
- Android和PHP開發最佳實踐(第2版)
- 軟件架構設計:大型網站技術架構與業務架構融合之道
- PaaS程序設計
- JMeter 性能測試實戰(第2版)
- Django開發從入門到實踐
- 青少年美育趣味課堂:XMind思維導圖制作
- Java程序設計與計算思維
- UI智能化與前端智能化:工程技術、實現方法與編程思想
- Selenium Testing Tools Cookbook(Second Edition)
- The Professional ScrumMaster’s Handbook
- Python+Tableau數據可視化之美
- Unity 3D/2D移動開發實戰教程