This project demonstrates the integration of PostgreSQL, Excel file parsing, and client-side filtering in a .NET Core MVC environment. The application allows you to upload an Excel file, parse its data, and store it either in a JSON file or a PostgreSQL database. Additionally, it includes a client-side filtering mechanism for enhanced user interactivity.
Open appsettings.json in the MVC project. Modify the PostgreSQL connection string to match your database setup.
dotnet restore
Navigate to the MVC project directory and run: dotnet run
Access the application at localhost
HomeController: Contains logic for Excel file parsing, data storage in JSON/PostgreSQL, and client-side filtering.
Index.cshtml: Displays responsive orders list using jQuery. LoadFile.cshtml: Handles file upload, data loading from JSON/PostgreSQL, and client-side filtering.
Open the application and navigate to the LoadFile page. Upload an Excel file to parse and store data.
Choose between storing parsed data in a .json file or PostgreSQL database.
Use the LoadFile page to load data from either the .json file or the PostgreSQL database. Apply client-side filters based on date range and search text.
A separate project reads orders from the JSON file and displays them on the Index page using jQuery.
- .NET Core 6 MVC
- PostgreSQL with Entity Framework Core
- Newtonsoft.Json for JSON handling
- DocumentFormat.OpenXml for Excel file parsing
- jQuery for client-side interactivity
Just Run the application in visual studio and open the application in any browser.