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

Summary

In this chapter, we first described MEAN architecture by briefly expanding on the layers that comprise the MEAN stack: MongoDB, Express, Angular, and Node. For each of these components, we discussed their features/advantages and limitations. Thereafter, we began by describing the Node framework in detail. We first discussed the various installation options (the LTS or stable versions) that are available. Then, we had a brief look into the built-in modules that make up Node and also learned about the steps that are involved in starting a Node application.

In the succeeding topics, we described some important concepts in Node such as callbacks, event loops, event emitters, buffers, streams, and the filesystem. For callbacks, we described its implementation in synchronous and asynchronous mode. We also looked into how Node employs event loops in sequencing program operations. Next, we learned how to add event listeners, trigger events, remove listeners, and implement some other features. We then progressed to discussing buffers. Specifically, we learned how to create, read, and write into buffers.

The next topic described various types of streams that are available. We performed an exercise on writing to and reading from a stream. Finally, we discussed the filesystem and implemented different operations that can be performed on a file via an activity.

In the next chapter, we will begin developing RESTful APIs to perform create, read, update, and delete (CRUD) operations.

主站蜘蛛池模板: 常州市| 南汇区| 黄大仙区| 二手房| 揭西县| 德令哈市| 鄱阳县| 清水县| 萝北县| 高安市| 峨眉山市| 四子王旗| 五原县| 抚州市| 龙岩市| 九龙坡区| 万荣县| 临漳县| 嘉义县| 轮台县| 颍上县| 嵊州市| 界首市| 乐亭县| 高台县| 云浮市| 屏南县| 嘉义市| 罗源县| 大同县| 砚山县| 南丰县| 西青区| 封开县| 库伦旗| 崇文区| 嵊泗县| 密云县| 长乐市| 衡东县| 宁蒗|