fire up your mongod server from your root dir or create a data dir in this project to store your documents from mongo there. mongod --dbpath data.
Mongoose Schema
When you open models.js you'll see we've already included your Schema. You're welcome.
You'll also notice that this sprint comes with a people.json file, and a populateDbScript.js. this script will grab those people and add them into your db as long as you have your mongo server up and running.
RUN: node populateDbScript.js get receive all your data.
Todos:
write a GET request to /users that simply returns all the people.
write a GET request to /users/:direction that takes the given string and returns back a list of sorted data alphebetically.
hint sorted can be asc or desc so in your .sort() method you'll have to specify what the user wants by pulling that off of the sorted param
write a GET request /user-get-friends/:id that returns a single users's friends.
Extra Credit:
lastly write a PUT that updates a users firstNamelastName