/clients-users

A mini project to practice modeling with Mongoose.

Primary LanguageJavaScript

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