Simple Commerce - Backend - RS09

Status License


This is an Back-End application that allow the creation of customers, products and orders, where the customer can generate new purchase orders for certain products, much like a small e-commerce.


📝 Table of Contents


🧐 Application Routes

  • POST /customers

  • POST /products

  • POST /orders/

💼 Business Rules

  1. should be able to create a new customer
  2. should not be able to create a customer with one e-mail thats already registered
  3. should be able to create a new product
  4. should not be able to create a duplicated product
  5. should be able to create a new order
  6. should not be able to create an order with a invalid customer
  7. should not be able to create an order with invalid products
  8. should not be able to create an order with products with insufficient quantities
  9. should be able to subtract an product total quantity when it is ordered
  10. should be able to list one specific order

✍️ Author


🎉 Acknowledgements

  • Challenge proposed by Rocket Seat within the gostack 14 bootcamp.