Closed asc2683 closed 6 years ago
I've added seed mongo data in chore/seed-mongo-data branch. We should now all share common data served from api for dev work. Follow these steps:
1) Checkout chore/seed-mongo-data branch 2) Run npm install 3) Type the this command to seed the fie -> $ seed 4) Confirm data via postman: GET: localhost:3000/api/teams
More info on the package here https://www.npmjs.com/package/node-mongo-seeds
In master branch, we should gitignore seeds folder
Use this as a reference: https://github.com/udacity/reactnd-project-readable-starter/blob/master/api-server/categories.js