Learn to use Express.js pragmatically by creating five fun and robust real-world APIs, with a bonus chapter on Koa.js
The book covers various different types of applications, each with a diverse set of challenges. You will start with the basics such as hosting static content and user authentication and work your way up to creating real-time, multiplayer online games using a combination of HTTP and Socket.IO. Next, you'll learn the principles of SOA in Node.js and see them used to build a pairing as a service. If that's not enough, we'll build a CRUD backend to post links and upvote with Koa.js!
What You Will Learn
Set up the Express.js framework with a basic scaffold
Model data using Mongoose and build a CRUD API to store the data in a database
Use promises to avoid callback hell in Node.js
Address scalability concerns and deal with race conditions
Apply test-driven development (TDD) by using Mocha to write tests for your apps
Get familiar with service-oriented architecture (SOA)
Integrate Socket.IO and dynamically push updates to the client
Write Node.js APIs by leveraging generator functions using Koa.js
Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.