How stangrinn/hg-storefront works
This is an Angular storefront for Helena Grisnhpun Art, backed by Vendure through a GraphQL/Apollo data layer. A shopper browses collections and products, manages a cart, checks out through shipping and payment, and can register or manage an account and orders. The graph preserves those domain stages plus shared state and data-access layers. Routing and sampled calls support the shown connections; broader capabilities and SSR are included where the README documents them, without implying unsampled implementation details.
Main entry points: app.component.ts App shell · data.service.ts GraphQL data service · checkout.routes.ts Checkout routing · checkout-shipping.component.ts Shipping selection
Components 22
Storefront experience
- App shell
src/app/app.component.ts - Product catalog
src/app/core/components/product-list/product-list.component.ts - Product detail
src/app/core/components/product-detail/product-detail.component.ts - Product search
src/app/core/components/product-search-bar/product-search-bar.component.ts
Commerce flows
- Shopping cart
src/app/core/components/cart-drawer/cart-drawer.component.ts - Checkout flow
src/app/checkout/components/checkout-process/checkout-process.component.ts - Shipping selection
src/app/checkout/components/checkout-shipping/checkout-shipping.component.ts - Payment processing
src/app/checkout/components/checkout-payment/checkout-payment.component.ts - Order confirmation
src/app/checkout/components/checkout-confirmation/checkout-confirmation.component.ts - Checkout routing
src/app/checkout/checkout.routes.ts
Customer accounts
- Account management
src/app/account/components/account-address-detail/account-address-detail.component.ts - Account routing
src/app/account/account.routes.ts
Application platform
- App routing
src/app/app.routes.ts - Application state
src/app/core/providers/state/state.service.ts - Shared UI
src/app/shared/components/address-form/address-form.component.ts - SSR server
server.ts
Data integration
- GraphQL data service
src/app/core/providers/data/data.service.ts - Apollo client
src/app/core/apollo-client-provider.ts - GraphQL operations
src/app/common/graphql/documents.graphql.ts - Generated API types
src/app/common/generated-types.ts
Other components
- Shopper
- Vendure shop API
Connections 27
- Shopper → App shell: visits
README.md - App shell → Product catalog: routes to
- App shell → Product detail: routes to
- App shell → Account routing: loads
- App shell → Checkout routing: loads
- App shell → GraphQL data service: queries collections
src/app/app.component.ts - App shell → Application state: reads state
src/app/app.component.ts - Product catalog → GraphQL data service: queries products
src/app/core/components/product-list/product-list.component.ts - Product detail → GraphQL data service: queries product
src/app/core/components/product-detail/product-detail.component.ts - Product catalog → Product search: uses search
- Product detail → Shopping cart: adds to cart
- Shopping cart → Application state: updates state
- Checkout routing → Checkout flow: routes to
src/app/checkout/checkout.routes.ts - Checkout routing → Shipping selection: routes to
src/app/checkout/checkout.routes.ts - Checkout routing → Payment processing: routes to
src/app/checkout/checkout.routes.ts - Checkout routing → Order confirmation: routes to
src/app/checkout/checkout.routes.ts - Checkout flow → Shipping selection: hosts stage
src/app/checkout/checkout.routes.ts - Shipping selection → GraphQL data service: loads and mutates
src/app/checkout/components/checkout-shipping/checkout-shipping.component.ts - Shipping selection → Shared UI: uses address form
src/app/checkout/components/checkout-shipping/checkout-shipping.component.ts - Shipping selection → Application state: reads sign-in state
src/app/checkout/components/checkout-shipping/checkout-shipping.component.ts - Account routing → Account management: routes account pages
src/app/account/account.routes.ts - Account management → GraphQL data service: manages account data
src/app/account/components/account-address-detail/account-address-detail.component.ts - GraphQL data service → Apollo client: calls
src/app/core/providers/data/data.service.ts - Apollo client → Vendure shop API: queries GraphQL
README.md - App shell → GraphQL operations: uses operations
src/app/app.component.ts - App shell → Generated API types: uses types
src/app/app.component.ts - SSR server → App shell: serves rendered app
README.md