How veronika855/washing_shop works
This is a Rails storefront for browsing products and promotions, managing a cart, and placing orders, with account, favorites, reviews, gift cards, callback requests, and an admin area. The principal checkout path is routed request → cart/order handling → persisted order and stock updates. The graph also preserves documented route branches and sampled review and admin behavior. Evidence is limited to the supplied excerpts, SOURCE INDEX, and routes; uninspected controller behavior and storage wiring are not assumed.
Main entry points: routes.rb HTTP routes · product.rb Products · orders_controller.rb Checkout and orders · promotions_controller.rb Promotion management
Components 19
Storefront
- HTTP routes
config/routes.rb - Product catalog
app/controllers/products_controller.rb
Commerce
- Products
app/models/product.rb - Cart handling
app/controllers/cart_controller.rb - Quick cart add
app/controllers/cart_quick_controller.rb - Checkout and orders
app/controllers/orders_controller.rb - Order records
app/models/order.rb - Promotion management
app/controllers/admin/promotions_controller.rb - Promotions
app/models/promotion.rb - Application database
db/schema.rb
Customer features
- Accounts and sessions
app/controllers/users_controller.rb - Favorites
app/controllers/favorites_controller.rb - Review submission
app/controllers/reviews_controller.rb - Review records
app/models/review.rb - Gift cards
app/controllers/gift_cards_controller.rb - Callback requests
app/controllers/callback_requests_controller.rb
Administration
- Admin order control
app/controllers/admin/orders_controller.rb - Admin dashboard
app/controllers/admin/dashboard_controller.rb
Other components
- Shopper
Connections 25
- Shopper → HTTP routes: sends requests
config/routes.rb - HTTP routes → Product catalog: routes catalog
config/routes.rb - HTTP routes → Cart handling: routes cart
config/routes.rb - HTTP routes → Quick cart add: routes quick add
config/routes.rb - HTTP routes → Checkout and orders: routes orders
config/routes.rb - HTTP routes → Accounts and sessions: routes registration
config/routes.rb - HTTP routes → Favorites: routes favorites
config/routes.rb - HTTP routes → Review submission: routes reviews
config/routes.rb - HTTP routes → Gift cards: routes gift cards
config/routes.rb - HTTP routes → Callback requests: routes callbacks
config/routes.rb - HTTP routes → Promotion management: routes admin promos
config/routes.rb - HTTP routes → Admin order control: routes admin orders
config/routes.rb - HTTP routes → Admin dashboard: routes admin home
config/routes.rb - Checkout and orders → Products: checks stock and price
app/controllers/orders_controller.rb - Checkout and orders → Order records: creates order
app/controllers/orders_controller.rb - Checkout and orders → Application database: persists transaction
- Admin order control → Order records: updates status
app/controllers/admin/orders_controller.rb - Admin order control → Products: adjusts stock
app/controllers/admin/orders_controller.rb - Promotion management → Products: loads products
app/controllers/admin/promotions_controller.rb - Promotion management → Promotions: saves promotions
app/controllers/admin/promotions_controller.rb - Review submission → Products: finds product
app/controllers/reviews_controller.rb - Review submission → Review records: creates or deletes
app/controllers/reviews_controller.rb - Review records → Products: refreshes review stats
app/models/review.rb - Products → Application database: stores product data
- Order records → Application database: stores order data