How badriit/artwebnew2 works
This is an Angular art-gallery storefront. Visitors browse and filter artworks, open artwork details, and manage a cart; account, checkout, order-history, offers, artist, and gallery-service screens provide adjacent workflows. The sampled code shows product and cart API calls, local cart-related state, and guarded routes. The README documents only Angular tooling, so product capabilities are inferred from the source index and component names; several components and routes were not sampled, and their internal behavior is not asserted.
Main entry points: app-routing.module.ts Route configuration · cart.service.ts Cart service · service.service.ts Artwork API · cart.component.ts Shopping cart
Components 25
Application shell
- App module
src/app/app.module.ts - Root component
src/app/app.component.ts - Route configuration
src/app/app-routing.module.ts - Gallery services
src/app/services-communicate/services-communicate.component.ts - Contact page
src/app/contact/contact.component.ts
Artwork discovery
- Artwork home
src/app/home/home.component.ts - Artist listings
src/app/arters/arters.component.ts - Artist details
src/app/each-arter/each-arter.component.ts - Artwork details
src/app/product/product.component.ts - Catalog product
src/app/product-from-catalog/product-from-catalog.component.ts - Catalog artist
src/app/each-arter-from-catalog/each-arter-from-catalog.component.ts - Offers
src/app/offers/offers.component.ts
Cart and checkout
- Shopping cart
src/app/cart/cart.component.ts - Pre-order checkout
src/app/pre-order-details/pre-order-details.component.ts
Account
- Authentication
src/app/auth/auth.component.ts - Personal profile
src/app/personal/personal.component.ts - Order history
src/app/order-history/order-history.component.ts - Liked products
src/app/liked-products/liked-products.component.ts - Auth guard
src/app/auth.guard.service.ts
Shared services
- Artwork API
src/app/service.service.ts - Cart service
src/app/cart.service.ts - Checkout product state
src/app/get-product-info.service.ts
Other components
- Gallery visitor
- Plangton backend
- Artshop backend
Connections 40
- Gallery visitor → Route configuration: navigates
src/app/app-routing.module.ts - App module → Root component: bootstraps
src/app/app.module.ts - Route configuration → Artwork home: routes to
src/app/app-routing.module.ts - Route configuration → Artist listings: routes to
src/app/app-routing.module.ts - Route configuration → Gallery services: routes to
src/app/app-routing.module.ts - Route configuration → Contact page: routes to
src/app/app-routing.module.ts - Route configuration → Artwork details: routes to
src/app/app-routing.module.ts - Route configuration → Artist details: routes to
src/app/app-routing.module.ts - Route configuration → Catalog product: routes to
src/app/app-routing.module.ts - Route configuration → Catalog artist: routes to
src/app/app-routing.module.ts - Route configuration → Shopping cart: routes to
src/app/app-routing.module.ts - Route configuration → Liked products: routes to
src/app/app-routing.module.ts - Route configuration → Authentication: routes to
src/app/app-routing.module.ts - Route configuration → Personal profile: routes to
src/app/app-routing.module.ts - Route configuration → Offers: routes to
src/app/app-routing.module.ts - Route configuration → Pre-order checkout: routes to
src/app/app-routing.module.ts - Artwork home → Artwork API: fetches artworks
src/app/home/home.component.ts - Artwork home → Cart service: updates cart count
src/app/home/home.component.ts - Artist listings → Artwork API: uses
src/app/arters/arters.component.ts - Artist listings → Cart service: uses
src/app/arters/arters.component.ts - Artwork details → Artwork API: loads artwork
src/app/product/product.component.ts - Artwork details → Cart service: updates cart count
src/app/product/product.component.ts - Artwork details → Plangton backend: requests artwork
- Artwork API → Plangton backend: calls API
src/app/service.service.ts - Artwork API → Artshop backend: calls API
src/app/service.service.ts - Shopping cart → Artwork API: loads artwork data
src/app/cart/cart.component.ts - Shopping cart → Cart service: uses cart state
src/app/cart/cart.component.ts - Shopping cart → Checkout product state: uses checkout state
src/app/cart/cart.component.ts - Shopping cart → Plangton backend: fetches artwork
src/app/cart/cart.component.ts - Authentication → Cart service: uses cart state
src/app/auth/auth.component.ts - Authentication → Plangton backend: registers account
src/app/auth/auth.component.ts - Pre-order checkout → Auth guard: checks access
src/app/pre-order-details/pre-order-details.component.ts - Pre-order checkout → Checkout product state: reads product state
src/app/pre-order-details/pre-order-details.component.ts - Pre-order checkout → Artshop backend: submits checkout
src/app/pre-order-details/pre-order-details.component.ts - Auth guard → Authentication: redirects unauthenticated
src/app/auth.guard.service.ts - Auth guard → Plangton backend: validates account
src/app/auth.guard.service.ts - Liked products → Artwork API: uses
src/app/liked-products/liked-products.component.ts - Offers → Cart service: uses cart state
src/app/offers/offers.component.ts - Order history → Cart service: uses cart state
src/app/order-history/order-history.component.ts - Personal profile → Cart service: uses cart state
src/app/personal/personal.component.ts