How iamkarthickselvam/vehicleinsuranceclient works
Project type and purpose
• This is a single‐page frontend client built with Angular v16 and Bootstrap.
• Purpose: allow users to purchase vehicle insurance by selecting vehicle type, insurance plan, entering personal details, and completing payment. It fetches data and submits orders via an external RESTful Vehicle Insurance API and retrieves invoice PDFs.
File structure
• Top‐level files: angular.json, package.json, tsconfig.json, README.md, staticwebapp.config.json.
• src/ contains the SPA:
• src/app/_models – TypeScript interfaces (Vehicle, Image, Comp)
• src/app/_services – VehicleService wrapping HttpClient calls to the API and managing state via RxJS BehaviorSubject & sessionStorage
• src/app/app-routing.module.ts – Angular Router setup
• src/app/components: home, nav-bar, car-details, success, vehicle-details (with child modules: details, personal, plan, addon, checkout)
• src/assets – static images
• src/index.html, src/main.ts – app bootstrap
• CI/CD: .github/workflows/azure-static-web-apps-*.yml for deploying to Azure Static Web Apps.
README for additional insights
• Confirms Angular, RxJS, HttpClient usage, template‐driven & reactive forms, and deployment target (Azure Static Web App).
• Mentions interaction with Vehicle Insurance API (external service).