####HW 1 Assignment for Data Engineering w/ Ken Anderson -> Simple RESTful Service
Team wew
- Alex Campbell (Zandrr)
- Edward Zhu (zhued)
- Josh Fermin (joshfermin)
##What we implemented:
MongoDB - for local database to store the json mock data.
Mockgoose - test environment so we don't have to redo the database everytime.
mocha - Testing framework.
chai - Helper for mocha.
##How to Start Server
####Start Mongo
sudo mongod
####Init Server (npm)
npm install
npm start
####Populate MongoDB
curl http://localhost:3000/people/add
##To Test!
npm test
##What You Can Do!
curl http://localhost:3000/count
curl http://localhost:3000/people
curl http://localhost:3000/person/:id
curl -X POST http://localhost:3000/person?first_name=alex&last_name=campbell&[email protected]&country=noobland
curl -X PUT http://localhost:3000/person/:id?first_name=edward
curl -X DELETE http://localhost:3000/person/:id
curl http://localhost:3000/people/reset
curl http://localhost:3000/people/drop
curl http://localhost:3000/people/add