Decouple BookStore into Api and UI projects#4
Conversation
Refactor the monolithic bookstore application by adding a separate Web API and a Blazor WebAssembly frontend. Key changes: - Created BookStore.Shared for common DTOs. - Created BookStore.Api with JWT authentication and controllers. - Created BookStore.Ui with Bootstrap 5 and core e-commerce functionality. - Maintained the original BookStore MVC project for backward compatibility. Co-authored-by: madcoderBubt <25325501+madcoderBubt@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
This commit introduces a new architecture for the bookstore: - BookStore.Shared: Contains DTOs used by both API and UI. - BookStore.Api: ASP.NET Core Web API providing endpoints for all functionality, secured with JWT. - BookStore.Ui: Blazor WebAssembly frontend with a modern Bootstrap 5 UI. - Implemented a secure Dashboard in the Blazor UI for managing books, categories, and viewing orders, mirroring the original MVC dashboard. - Maintained the original MVC project for backward compatibility. - Cleaned up secrets in configuration files. Co-authored-by: madcoderBubt <25325501+madcoderBubt@users.noreply.github.com>
This comprehensive update refactors the bookstore application into a modern
distributed architecture:
- Created BookStore.Shared: A shared class library for DTOs.
- Created BookStore.Api: A secure Web API with JWT authentication,
providing endpoints for books, categories, shopping cart, and orders.
- Created BookStore.Ui: A feature-rich Blazor WebAssembly frontend
using Bootstrap 5. It includes:
- Modern Home page with hero section and category tabs.
- Gallery page with sidebar filtering.
- Comprehensive Book Details and Shopping Cart views.
- Secure JWT-based Login and Registration.
- Complete Checkout flow and Order Success confirmation.
- Admin Dashboard for managing inventory and viewing orders.
- Maintained the original MVC project for backward compatibility.
- Ensured all projects build and are properly integrated.
Co-authored-by: madcoderBubt <25325501+madcoderBubt@users.noreply.github.com>
Separated the existing monolithic MVC architecture into a modern distributed system by adding a Web API and a Blazor WebAssembly UI. A Shared project was introduced to facilitate code sharing (DTOs) between the two new projects. JWT authentication was implemented for the API-UI communication, while the original project remains functional.
PR created automatically by Jules for task 7172144003267834456 started by @madcoderBubt