/clients-users

A mini project to practice modeling with Mongoose.

Clients and Users

A mini project to practice modeling with Mongoose.

Objectives

Create a simple MongoDB database using mongoose that models a simple clients and users system.

##Step 1: Setup a Node.js project

  1. Create a node project.
  2. Install mongoose with npm

##Step 2: Model the following

  1. Create a user model that stores the user's name, email, address, city, state, zip and age
  2. Create a client model that stores the client's name, value (in dollars), contract length (in years)

##Step 3: Create an Express API that exposes both users and clients

####GET /v1/users

####GET /v1/users/:last_name

####GET /v1/clients

####GET /v1/clients/:name

Copyright

© DevMountain LLC, 2016. Unauthorized use and/or duplication of this material without express and written permission from DevMountain, LLC is strictly prohibited. Excerpts and links may be used, provided that full and clear credit is given to DevMountain with appropriate and specific direction to the original content.