Simple Commerce - Backend - RS09
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
- should be able to create a new customer
- should not be able to create a customer with one e-mail thats already registered
- should be able to create a new product
- should not be able to create a duplicated product
- should be able to create a new order
- should not be able to create an order with a invalid customer
- should not be able to create an order with invalid products
- should not be able to create an order with products with insufficient quantities
- should be able to subtract an product total quantity when it is ordered
- should be able to list one specific order
✍️ Author
- @devfel - Luiz Flávio Felizardo
🎉 Acknowledgements
- Challenge proposed by Rocket Seat within the gostack 14 bootcamp.