How zsonntag/shoppinglist works
Project type and purpose
• This is a single‐page application (SPA) built with Angular (v16) called “Shopping.”
• Its purpose is to provide a UI for shopping functionality—adding/editing products, listing them, probably communicating with a REST or mock API (db.json).
File structure
• Top‐level config files: angular.json (Angular CLI config), tsconfig*.json (TypeScript), package.json, db.json (mock data).
• src/ holds the entire client app:
• src/index.html & styles.scss: host page and global styles.
• src/main.ts: bootstraps AppModule into the browser.
• src/app/:
– app.module.ts: root NgModule.
– app.component.*: root component.
– core/: singleton services (core.service.ts).
– pipe/: custom pipes for UI transformations.
– services/: domain services (product.service.ts).
– prod-add-edit/: component for adding/editing products.
• src/assets/: static assets.
• Tests reside alongside code (*.spec.ts).
README for additional insights
• Uses Angular CLI for serve/build/test/e2e.
• Typical Angular dev workflow: ng serve → live reloading → ng build → dist artifacts.
• No explicit backend listed; db.json implies a mock REST API (e.g., with json-server).