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

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
主站蜘蛛池模板: 苍南县| 同江市| 山东| 凤阳县| 工布江达县| 樟树市| 教育| 漳平市| 元阳县| 甘孜| 茶陵县| 定州市| 全椒县| 韶山市| 新津县| 东乡族自治县| 营口市| 涟水县| 南部县| 仁化县| 临城县| 巴林右旗| 新安县| 盐城市| 连平县| 九江县| 南陵县| 罗甸县| 北流市| 荆州市| 遵义市| 庆元县| 读书| 泾川县| 泾川县| 巴楚县| 新邵县| 湾仔区| 涪陵区| 灵石县| 玉溪市|