Book Image

Building Scalable Apps with Redis and Node.js

By : Joshua Johanan
Book Image

Building Scalable Apps with Redis and Node.js

By: Joshua Johanan

Overview of this book

Table of Contents (17 chapters)
Building Scalable Apps with Redis and Node.js
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 1. Backend Development with Express

This chapter will show how to set up Express for our application. Express is the application framework for Node.js. If Node.js is the foundation, Express will be the framework of our house. Express provides us with routing, sessions, form processing, and so on. Entire books have been written on it, so we will just touch on what we require. If you have never used Express before in a Node project, don't worry, you will get a good feel of it by the end of this chapter. If you were lucky enough to use Express before, then hopefully I can show you something you don't already know.

The topics that we will cover in this chapter are as follows:

  • Serving and responding to HTTP requests

  • Routing

  • Middleware

  • Templating

  • Creating sessions

  • Parsing form data

  • Integrating everything together