This is a Blazor WebAssembly application that displays data from a database through a user interface. For the backend functionality, we have integrated it with a .NET API. The application interface has been designed using MatBlazor. We have used SQL Server as the database. You can manipulate orders within the application as we have already provided the seed data with the migration. Once you run the application, you can experiment with it.
- Clone the git repository using this link: https://github.com/Nayeem170/IntusWindows-Sales.APP
- Switch to the develop branch
- Go to the SalesSolution folder, then Double-click on the SalesSolution.sln file to open the project in Visual Studio
- Update the database connection string (SalesDBConnection) in the SalesSolution\Sales.Api\appsettings.json file
- Set Sales.API as the startup project
- Open the Package Manager Console
- Select Sales.DAL from the default project, and run the migration command, "Update-Database"
- Ends of succeful migration you will see Done ends of it
- Right-click on the SalesSolution, then select Configure Startup Project
- Select Sales.API and Sales.APP as startup projects
- Click on Start to run the application
- The application will open on your browser at https://localhost:7247/
I chose onion architecture for this project. The reason for selecting onion architecture in this project is because it facilitates the separation of concerns by arranging code into layers. This, in turn, leads to a codebase that is more manageable and testable while decreasing interdependencies among different components of the system.
- The project displayed with no data
- The project presented with seed data
- Form validation when adding a new order
- The response to creating a sub-element with invalid data was displayed in a toast
- Swagger documentation page of our API project