keithb418 / scrum-team-app

Apache License 2.0
3 stars 5 forks source link

Create mock data in mogoDB #59

Closed asc2683 closed 6 years ago

asc2683 commented 7 years ago

Use this as a reference: https://github.com/udacity/reactnd-project-readable-starter/blob/master/api-server/categories.js

asc2683 commented 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