PharmaStock Authentication and AI Testing

 This week I focused on completing the authentication workflow for PharmaStock and testing the new AI integration that was recently added to the project.

The main task I worked on was connecting the Angular login screen to the ASP.NET Core backend authentication endpoint. I implemented the login flow so that when a user enters their email and password, the frontend sends a request to the API login endpoint. When the credentials are valid, the backend returns a JWT token that is stored locally so it can be used for future authenticated requests.

After implementing the login functionality, I tested the system using both the seeded admin account and a newly created test user. I verified that the login request returned the correct token and that user roles were stored properly in the database.

I also spent time testing the AI prediction pipeline that was recently integrated into the project. Initially, some prediction endpoints were returning server errors, but I discovered the issue was related to the AI Docker container not running locally. After starting the container, the AI service responded correctly to health checks and confirmed that the machine learning models were loaded successfully.

Overall, this week’s work helped ensure that the authentication system is functioning correctly and that the AI service is accessible for future features within the application.




Comments

Popular posts from this blog

PharmaStock: Backend Infrastructure & Database Connectivity

PharmaStock Backend Progress Complete all backend endpoints

PharmaStock: Sprint Planning Complete