没有合适的资源?快使用搜索试试~ 我知道了~
首页Practical Node.js Building Real-World Scalable Web Apps 无水印pdf
Practical Node.js Building Real-World Scalable Web Apps 无水印pdf
需积分: 9 22 下载量 124 浏览量
更新于2023-03-16
评论
收藏 6.67MB PDF 举报
Practical Node.js Building Real-World Scalable Web Apps 英文无水印pdf pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除
资源详情
资源评论
资源推荐
Mardan
US $49.99
Shelve in
Web Development /JavaScript
User level:
Intermediate–Advanced
www.apress.com
SOURCE CODE ONLINE
RELATED
BOOKS FOR PROFESSIONALS BY PROFESSIONALS
®
Practical Node.js
Practical Node.js is your step-by-step guide to learning how to build a wide range of Node.js
web applications using a professional development toolkit. Node.js is an innovative and highly efficient
platform for creating web services. But Node.js doesn’t live in a vacuum! In modern web development,
many different components need to be put together—routing, database driver, ORM, session
management, OAuth, HTML template engine, CSS compiler, testing, deployment, and many more. If
you already know the basics of Node.js, now is the time to discover how to bring it to the production
level by leveraging its vast ecosystem of packages. As a web developer, you’ll work with a varied
collection of standards and frameworks and learn how all those pieces fit together.
Practical Node.js takes you from the overview of JavaScript and Node.js basics and installing all the
necessary modules, to writing and deploying web applications, and everything in between. We’ll cover
libraries including, but not limited to, Express.js 4 and Hapi.js frameworks, Mongoskin and Mongoose
ORM for the MongoDB database, Jade and Handlebars template engines, OAuth and Everyauth
libraries for OAuth integrations, Mocha testing framework and Expect TDD/BDD language, and the
Socket.IO and DerbyJS libraries for WebSocket real-time communication
The hands-on approach of Practical Node.js walks readers through iterating on the Blog project
in addition to many other smaller examples. You’ll build database scripts, RESTful APIs, tests, and
full-stack apps all from scratch. This book covers how to use Git and deploy to Heroku, as well as
examples of how to deploy to Amazon Web Services, daemonize apps, and get started with Nginx,
Varnish Cache, Upstart, init.d, and the forever module. You’ll also discover how to write your own Node.js
modules and publish them on NPM.
Practical Node.js will show you how to:
• Build web apps with Express.js 4, MongoDB, and Jade template engine
• Manipulate data from the MongoDB console
• Test Node.js web services with Mocha, Expect and TravisCI
• Utilize token and session-based authentication
• Implement a third-party (Twitter) OAuth strategy with Everyauth
• Prepare code for production with Redis, Node.js domains, and the cluster library,
among other tips and the best practices
• Install necessary Node.js components on an Amazon Web Services (AWS) instance
9781430 265955
54999
ISBN 978-1-4302-6595-5
For your convenience Apress has placed some of the front
matter material after the index. Please use the Bookmarks
and Contents at a Glance links to access them.
v
Contents at a Glance
About the Author ���������������������������������������������������������������������������������������������������������������� xv
About the Technical Reviewer ������������������������������������������������������������������������������������������ xvii
Acknowledgments ������������������������������������������������������������������������������������������������������������� xix
Introduction ����������������������������������������������������������������������������������������������������������������������� xxi
Chapter 1: Setting up Node�js and Other Essentials ■ ����������������������������������������������������������1
Chapter 2: Using Express�js 4 to Create Node�js Web Apps ■ ���������������������������������������������33
Chapter 3: TDD and BDD for Node�js with Mocha ■ ������������������������������������������������������������57
Chapter 4: Template Engines: Jade and Handlebars ■ �������������������������������������������������������71
Chapter 5: Persistence with MongoDB and Mongoskin ■ �������������������������������������������������103
Chapter 6: Using Sessions and OAuth to Authorize and Authenticate ■
Users in Node�js Apps ����������������������������������������������������������������������������������������������������129
Chapter 7: Boosting Your Node�js Data with the Mongoose ORM Library ■ ���������������������149
Chapter 8: Building Node�js REST API Servers with Express�js and Hapi ■ ����������������������173
Chapter 9: Real-Time Apps with WebSocket, Socket�IO, and DerbyJS ■ ��������������������������195
Chapter 10: Getting Node�js Apps Production Ready ■ �����������������������������������������������������215
Chapter 11: Deploying Node�js Apps ■ �����������������������������������������������������������������������������243
Chapter 12: Publishing Node�js Modules and Contributing to Open Source ■ ������������������261
Index ���������������������������������������������������������������������������������������������������������������������������������269
xxi
Introduction
ere are more and more books and online resources being published that cover Node.js basics (e.g., how-to’s of
Hello World and simple apps). For the most part, these tutorials rely on core modules only or maybe one or two
Node Package Manager (NPM) packages. is “sandbox” approach of tutorials is easy and doesn’t require many
dependencies, but it can’t be further from the actual Node.js stack. is is especially true with Node.js, the core of
which—by design—is kept lean and minimal. At the same time, the vast “userland” (i.e., NPM) provides an ecosystem
of packages/modules to serve specic granular purposes. erefore, there is a need to show eectively how Node.js
is used in the industry and to have it all in one place—the all-encompassing practical resource that can be used as a
learning tool, a code cookbook, and a reference.
What This Book Is
Practical Node.js: Building Real-World Scalable Web Apps is a hands-on manual for developing production-ready
web applications and services by leveraging the rich ecosystem of Node.js packages. is is important because real
applications require many components, such as security, deployment, code organization, database drivers, template
engines, and more. is is why we include extensive 12-chapter coverage of third-party services, command-line tools,
NPM modules, frameworks, and libraries.
Just to give you some idea, Practical Node.js is a one-stop place for getting started with Express.js 4, Hapi.js,
DerbyJS, Mongoskin, Mongoose, Everyauth, Mocha, Jade, Socket.IO, TravisCI, Heroku, Amazon Web Services (AWS),
and many others. Most of these items are vital for any serious project.
In addition, we create a few projects by building, step by step, from a straightforward concept to a more
complicated application. ese projects can also serve as a boilerplate for jump-starting your own development
eorts. Also, the examples show industry best practices to help you avoid costly mistakes.
Last but not least, many topics and chapters serve as a reference to which you can always return later when
you’re faced with a challenging problem.
Practical Node.js aims to save you time and make you a more productive Node.js programmer!
What You’ll Learn
Practical Node.js takes you from an overview of JavaScript and Node.js basics, installing all the necessary modules to
writing and deploying web applications, and everything in between. We cover libraries including, but not limited to,
Express.js 4 and Hapi.js frameworks, Mongoskin and the Mongoose object-relational mapping (ORM) library for the
MongoDB database, Jade and Handlebars template engines, OAuth and Everyauth libraries for OAuth integrations,
the Mocha testing framework and Expect test-driven development/behavior-driven development language, and the
Socket.IO and DerbyJS libraries for WebSocket real-time communication.
■ IntroduCtIon
xxii
In the deployment chapters (10 and 11), the book covers how to use Git and deploy to Heroku, as well as
examples of how to deploy to AWS, daemonize apps, and use Nginx, Varnish Cache, Upstart, init.d, and the forever
module.
e hands-on approach of this book walks you through iterating on the Blog project in addition to many other
smaller examples. You’ll build database scripts, representational state transfer (RESTful) application programming
interfaces (APIs), tests, and full-stack apps all from scratch. You’ll also discover how to write your own Node.js
modules and publish them on NPM.
Practical Node.js will show you how to do the following:
Build web apps with Express.js 4, MongoDB, and the Jade template engine•
Use various features of Jade and Handlebars•
Manipulate data from the MongoDB console•
Use the Mongoskin and Mongoose ORM libraries for MongoDB•
Build REST API servers with Express.js 4 and Hapi.js•
Test Node.js web services with Mocha, Expect, and TravisCI•
Use token and session-based authentication•
Implement a third-party (Twitter) OAuth strategy with Everyauth•
Build WebSocket apps using Socket.IO and DerbyJS libraries•
Prepare code for production with Redis, Node.js domains, and the cluster library using tips •
and best practices
Deploy apps to Heroku using Git•
Install necessary Node.js components on an AWS instance•
Congure Nginx, Upstart, Varnish, and other tools on an AWS instance•
Write your own Node.js module and publish it on NPM•
You already know what Node.js is; now, learn what you can do with it and how far you can take it.
What This Book Is Not
Although the entire rst chapter is dedicated to installations and a few important dierences between Node.js and
browser JavaScript, we didn’t want to dilute the core message of making production-ready apps, or make
Practical Node.js even larger and more convoluted. erefore, the book is not a beginner’s guide and there is no
extensive immersion into the inner workings of the Node.js platform and its core modules.
We also can’t guarantee that each component and topic are explained to the extent you need, because the nature
of your project might be very specic. Most chapters in the book help you to get started with the stack. ere is simply
no realistic way to t so many topics in one book and cover them comprehensively.
Another caveat of this book (or virtually any other programming book) is that the versions of the packages we
use will eventually become obsolete. Often, this isn’t an issue because, in this book, versions are stated and locked
explicitly. So no matter what, the examples will continue to work with our versions.
Even if you decide to use the latest versions, in many cases this still might not be an issue, because essentials
remain the same. However, if you go this o-path route, once in a while you might be faced with a breaking change
introduced by the latest versions.
剩余287页未读,继续阅读
yinkaisheng-nj
- 粉丝: 763
- 资源: 6953
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- RTL8188FU-Linux-v5.7.4.2-36687.20200602.tar(20765).gz
- c++校园超市商品信息管理系统课程设计说明书(含源代码) (2).pdf
- 建筑供配电系统相关课件.pptx
- 企业管理规章制度及管理模式.doc
- vb打开摄像头.doc
- 云计算-可信计算中认证协议改进方案.pdf
- [详细完整版]单片机编程4.ppt
- c语言常用算法.pdf
- c++经典程序代码大全.pdf
- 单片机数字时钟资料.doc
- 11项目管理前沿1.0.pptx
- 基于ssm的“魅力”繁峙宣传网站的设计与实现论文.doc
- 智慧交通综合解决方案.pptx
- 建筑防潮设计-PowerPointPresentati.pptx
- SPC统计过程控制程序.pptx
- SPC统计方法基础知识.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0