The products resource represents the store items that the customer can perform the following operations:
- List All products
- List products by ID
- List products by date (i.e. sort by date)
- List products by category
- List products by name
- List products by price range
- Give product a rating
- Give product a review
On the other hand, developers can:
- Create a new product
- Update a product
- Delete a product
Please run the following commands:
git clone https://github.com/nyu-devops-fall18/products.git
cd products
vagrant up
vagrant ssh
cd /vagrant
honcho start
e.g.1 to list all the products, please try link: http://localhost:5000/products
e.g.2 to sort all the products by date, please try link: http://localhost:5000/products/latest
e.g.3 to search a product by name, please try link: http://localhost:5000/products?name=desk
e.g.4 to search a product by category, please try link: http://localhost:5000/products?category=clothing
Perform the same steps as above, till cd /vagrant and then run the following command:
nosetests
Perform the same steps as above, till cd /vagrant and then run the following:
honcho start &
behave
To stop the app, do the following:
fg
<ctrl + c>