Book Image

Mastering Web Application Development with Express

By : Alexandru Vladutu
Book Image

Mastering Web Application Development with Express

By: Alexandru Vladutu

Overview of this book

Table of Contents (18 chapters)
Mastering Web Application Development with Express
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Creating the MovieApp sample application


Throughout this chapter, we will create a sample movie application using The Movie Database API provided at http://www.themoviedb.org/. This application will allow users to search for movies by name, browse the results, and view a page containing the details of a specific movie (such as the cast, release date, trailer, and so on).

In the first version of our code, we are not going to use any NPM modules besides the one used for communicating with the API. This means that we will use raw Node for things such as control-flow, error handling, extending objects, or to ensure that the callbacks get executed once.

After that, we will eliminate code repetition step by step for each of these topics and introduce the NPM modules that will do most of the work for us.

Before we begin writing the code, we will need to register and create an API key on the site and check out the documentation available at http://docs.themoviedb.apiary.io.

Application structure and...