So far, each of the pages that we have rendered display their viewModel
data perfectly, but that pesky sidebar still remains blank. We're going to fix this by creating a few modules for the sidebar content by implementing them as helper modules. These helper modules will be used repeatedly by various parts of our application and don't necessarily belong to the controller
folder or the server
folder. So, we'll just create a new home called helpers
and store these modules there.
Web Development with MongoDB and NodeJS Second edition
Web Development with MongoDB and NodeJS Second edition
Overview of this book
Table of Contents (19 chapters)
Web Development with MongoDB and NodeJS Second Edition
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
Welcome to JavaScript in the Full Stack
Getting Up and Running
Node and MongoDB Basics
Introducing Express
Templating with Handlebars
Controllers and View Models
Persisting Data with MongoDB
Creating a RESTful API
Testing Your Code
Deploying with Cloud-Based Services
Single-Page Applications with Popular Frontend Frameworks
Popular Node.js Web Frameworks
Index
Customer Reviews