Book Image

Node.js By Example

Book Image

Node.js By Example

Overview of this book

Table of Contents (18 chapters)
Node.js By Example
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 8. Creating Pages and Events

Chapter 7, Posting Content, covered the posting of content. We gave an interface to user to send text and images to our database. Later, these resources were shown as a message feed on the home page. In this chapter, we will learn how to create pages and events that are attached to these pages. Here is the plan that we are going to follow:

  • Refactoring the API

  • Adding a form to create pages

  • Creating a record in the database

  • Showing the currently added pages

  • Showing a specific page

  • Posting a comment to a page

  • Showing comments

  • Managing events attached to a particular page