ProductFlow - Technical Docs
Overview
ProductFlow is a demo application for purchase and order tracking. Bonus features include reports and analytics. ProductFlow is the backend for administrative tasks, customer support, and managing inventory.
Project Management
Roadmap
Process Flow
1. User Adds Products to Cart
- Frontend:
- The user browses products and adds them to their shopping cart.
- The cart typically stores product details (ID, name, price, quantity) temporarily in the browser or local storage.
- Backend:
- Cart details are not typically stored on the server (unless using a user account for saving carts). They are usually handled on the frontend until the user proceeds to checkout.
2. User Proceeds to Checkout
- Frontend:
- Once the user is ready to check out, they proceed to the checkout page.
- The cart data is sent to the server, and the user enters their shipping information, billing details, and payment information.
- The system might also ask for promo codes or discounts and apply them to the cart.
- Backend:
- The backend processes the checkout form, validating the user’s shipping address, payment method, and calculating the final total (including shipping fees, taxes, etc.).
- The backend also checks the availability of products (whether the items are still in stock).
- Order creation is initiated.
3. Order Creation
- Backend:
- A new order record is created in the database.
- The order status is set to
PENDING (or a similar initial status).
- The order details, including:
- Customer (name, email, shipping address, etc.)
- Products (with quantities, prices, etc.)
- Total amount (including taxes and discounts)
- Shipping method (if applicable)
- Saved as an order in the database.
- Payment:
- A request is made to the payment gateway (e.g., Stripe, PayPal, etc.) to process the payment.
- The payment gateway validates the transaction and returns a response (success/failure).