- I want to view a list of products.
- I want to view a single product.
- I want to comment on a product.
- I want to view other comments when I view a product.
- I want to create a product with a name, description, and price (assume USD).
- Communicate with HTTP to a backend. (Note: can be mocked for this exercise - use ngMockE2E and $httpBackend)
- Structure your code sanely. Use directives, services, controllers, etc. where appropriate.
Bonus
- Build the backend using node.js - if you use loopback.io or another set of CRUD generators, it should be a breeze.
- Persist the product/comment data to an actual database. (You could just store the data in memory for this exercise)
- used angular-fullstack instead.
- I went with yeoman and angular-fullstack to scaffold out as much as possible. Given the time constraint, it made sense to avoid writing as much boilerplate as possible. I'm not a huge fan of the project structure that the angular-fullstack generator enforces (this is better imo) but it was a compromise I made for agility.
- Clone the repo locally
npm installbower install- Start mongo (
mongod) grunt serve(might need--forceas I did)