Book Image

Web Development with MongoDB and Node.js

By : Jason Krol
Book Image

Web Development with MongoDB and Node.js

By: Jason Krol

Overview of this book

Table of Contents (19 chapters)
Web Development with MongoDB and Node.js
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
12
Popular Node.js Web Frameworks
Index

Chapter 4. Writing an Express.js Server

Plain old vanilla Node by itself is not a very good solution for creating web applications. You will have to write a heck of a lot of boilerplate code just to get off the ground. All of the pieces are there, but why go through all that trouble when somebody has already done it for us!

In this chapter:

  • I will introduce you to the Express.js web application framework

  • We will write the basic Node.js code necessary to bootstrap a server

  • We will also take a look at what's necessary to migrate to Express.js v4