How yankibtw/online-store works
This is a Crow-based clothing storefront: shoppers browse products, authenticate, build a cart, submit an order, and revisit order history. The backend separates HTTP controllers from managers and PostgreSQL access; browser templates and JavaScript provide the storefront UI. The README also names wishlist and review functionality. Edges from main to controllers and from sampled controllers to managers are supported by source references or excerpts; browser/API wiring and several unsampled controller-to-manager calls are not shown, so those relationships are omitted rather than inferred.
Main entry points: main.cpp Crow Server · dbb.cpp Database Connection · user_manager.cpp User and Sessions · cart_controller.cpp Cart Routes
Components 17
Storefront UI
- Storefront Pages
templates - Storefront Scripts
static/js
HTTP Controllers
- Crow Server
src/main.cpp - Authentication Routes
src/controllers/auth_controller.cpp - Product Routes
src/controllers/product_controller.cpp - Page Routes
src/controllers/page_controller.cpp - Cart Routes
src/controllers/cart_controller.cpp - Order and Review Routes
src/controllers/order_controller.cpp - Wishlist Routes
src/controllers/wishlist_controller.cpp
Commerce Services
- User and Sessions
src/user_manager.cpp - Product Catalog
src/product_manager.cpp - Cart Management
src/cart_manager.cpp - Orders and Reviews
src/order_manager.cpp - Wishlist Management
src/wishlist_manager.cpp
Persistence
- Database Connection
src/dbb.cpp
Other components
- Shopper
- PostgreSQL
Connections 22
- Shopper → Storefront Pages: views
- Storefront Pages → Storefront Scripts: loads scripts
- Storefront Scripts → Crow Server: requests APIs
- Crow Server → Authentication Routes: registers routes
src/main.cpp - Crow Server → Product Routes: registers routes
src/main.cpp - Crow Server → Cart Routes: registers routes
src/main.cpp - Crow Server → Wishlist Routes: registers routes
src/main.cpp - Crow Server → Order and Review Routes: registers routes
src/main.cpp - Crow Server → Page Routes: registers routes
src/main.cpp - Cart Routes → Cart Management: calls cart operations
src/controllers/cart_controller.cpp - Order and Review Routes → Orders and Reviews: creates and reads
src/controllers/order_controller.cpp - Order and Review Routes → User and Sessions: checks sessions
src/controllers/order_controller.cpp - Cart Routes → User and Sessions: checks sessions
src/controllers/cart_controller.cpp - Authentication Routes → User and Sessions: handles identity
- Product Routes → Product Catalog: serves catalog
- Wishlist Routes → Wishlist Management: manages favorites
- Cart Management → Database Connection: uses connection
src/cart_manager.cpp - Product Catalog → Database Connection: queries products
src/product_manager.cpp - Orders and Reviews → Database Connection: uses connection
- User and Sessions → Database Connection: uses connection
- Wishlist Management → Database Connection: uses connection
src/wishlist_manager.cpp - Database Connection → PostgreSQL: connects