Chapter 5. Interacting with Data – Creation

As we are building an application from the ground up, our first work with data will be creating some and saving it to the database. In this chapter we will:

  • Learn about creating an instance
  • Learn about saving an instance
  • Learn when to use different approaches
  • Add the ability for users to sign up to our MongoosePM application by:
    • Adding new routes
    • Adding new views
    • Adding new controller code
    • Saving the user details in a session so that they stay logged in
  • Outline the steps required to add the ability to create new projects, but let you go for it alone! If you get stuck, you can always download the complete source code to take a look.

Creating an instance

Now that Chapter 4, Interacting with Data – An Introduction ...

Get Mongoose for Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.