Ecommerce challenge.
Docker desktop
cd mvp-ecommerce
docker-compose -f docker-compose.yml up
cd mvp-ecommerce
docker-compose -f docker-compose.yml down
cd mvp-ecommerce/static-web-page
open index.html in Chrome/firefox
Please note entire rest collection is available under (importable via insomnia) :
cd mvp-ecommerce/rest-samples
- users -> GET / POST
{ "username": "user3", "userType": "CUSTOMER" }
- products -> GET / POST
{ "name": "APPLE", "description": "lemon", "price": 132, "quantity": 12 }
- users/cart -> GET
- users/{user_id}/addtocart/{product_id}
- users/{user_id}/removefromcart/{product_id}
If you open the portal without setting up the database, the users screen will be empty
Fire up this rest API to load a user
Now the screen will display the user in a dropdown
However, the products will remain empty as they need to be added to database as well
Now your marketplace db is setup
com.dealstop | 93% (15/16) |
---|
- Github CI-CD
- Docker build
- Search enabled in products / cart