Inventory Integration

 This week focused on connecting the Inventory backend to the Angular frontend and stabilizing the feature for the core MVP.

On the backend, the inventory endpoints are fully functional. The PATCH endpoint successfully adjusts stock quantities while preventing negative values, and the GET-all endpoint returns all inventory records correctly. DTO mappings are now cleanly structured to separate database entities from response models.

On the frontend, I replaced placeholder data in the Angular Material table with live API data. I implemented a dedicated InventoryService and a mapping layer to transform API responses into display-ready rows. After wiring everything together, I resolved several integration issues including CORS configuration, Angular change detection behavior, and a runtime rendering error related to asynchronous data updates.

At this point, inventory data loads and displays correctly, reorder and expiration indicators function as expected, and backend quantity adjustments persist in the database.



    Inventory Seed Data from database:

Comments

Popular posts from this blog

PharmaStock: Backend Infrastructure & Database Connectivity

PharmaStock Backend Progress Complete all backend endpoints

PharmaStock: Sprint Planning Complete