Book Image

Learning Node.js for Mobile Application Development

Book Image

Learning Node.js for Mobile Application Development

Overview of this book

Table of Contents (21 chapters)
Learning Node.js for Mobile Application Development
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
14
Creating an E-Commerce Application Using the Ionic Framework
Index

The efficient serving of static files


To keep things brief, and also to get our feet wet when it comes to using the HTTP module, we served a static HTML file directly from Node.js in our example. In a production system, static files are usually much more efficient as regards serving from a standard file server such as Apache or Nginx.