官术网_书友最值得收藏!

Chapter 1.  Building a Twitter-Like Application Using the MVC Design Pattern

The Model View Controller (MVC) design pattern was very popular in the eighties in the software industry. This pattern helped so many engineers and companies to build better software for a while and is still useful nowadays with the rise of Node.js and some Node frameworks as Express.js (more information about Express.js and its API can be found at http://expressjs.com/).

Note

As the Express.js website says, it is "Fast, unopinionated, minimalist web framework for Node.js."

Express.js is the most popular Node framework and many companies across the globe have adopted it. So in our first application, let's see how to apply the MVC pattern to create an application using only JavaScript at the backend.

In this chapter, we will cover these topics:

  • Installing the Node and Express framework
  • MVC design pattern
  • Dealing with Yeoman generator
  • How to use Express generator
  • How to deal with Express template engine
  • User authentication
  • MongoDB connection with Mongoose Schema
主站蜘蛛池模板: 长治县| 和龙市| 讷河市| 阿城市| 泸定县| 高雄市| 澄迈县| 东乡县| 江门市| 连平县| 清远市| 靖安县| 深水埗区| 重庆市| 陆良县| 皋兰县| 皮山县| 万全县| 黑河市| 广安市| 松江区| 西乌珠穆沁旗| 铜陵市| 景洪市| 常德市| 墨江| 诸暨市| 上林县| 娱乐| 安义县| 郓城县| 上林县| 永康市| 浦县| 建瓯市| 本溪市| 昌图县| 兴宁市| 甘南县| 谢通门县| 喀喇|