Welcome to the Agri-Energy Connect Platform, an innovative web application designed to bridge the gap between agriculture and green energy solutions. This platform enables farmers, green energy experts, and other stakeholders to collaborate and explore sustainable solutions for the agricultural sector. This repository contains the code and documentation for the prototype developed as part of my Programming 3A Portfolio of Evidence assignment.
- Sustainable Farming Hub: A resource center offering sustainable farming practices like organic farming, water conservation, and more.
- Green Energy Marketplace: A marketplace for green energy solutions tailored for agricultural needs such as solar-powered irrigation systems.
- Educational Resources: Access online courses, webinars, and workshops for adopting renewable energy technologies.
- User Roles: Two roles, Farmers and Employees, each with distinct functionalities.
- Secure Authentication: Login functionality with role-based access to secure user data.
Before running the project, ensure you have the following installed:
- Visual Studio 2022 or later
- SQL Server or an alternative database system
- .NET Core 6.0 or later
- Clone the repository:
git clone https://github.com/ST10067544-Thato/Agri-Energy-Connect.git
- Open the solution in Visual Studio.
- Restore the required packages by running:
dotnet restore
- Set up the database using the provided SQL scripts in
/Miscellaneous/AgriEnergyConnectDB.sql
. - Update the database connection string in
appsettings.json
to point to your local database. - Run the application by pressing
F5
in Visual Studio.
Once the application is running:
- Login as either a Farmer or an Employee.
- Farmers can add products and view/manage their product listings.
- Employees can add new farmers and view/filter products by date or product type.
- /Controllers: Handles the core logic of the application.
- /Models: Contains the data models used by the system.
- /Views: Razor views for the user interface.
- /wwwroot: Static content like CSS and JavaScript.
- C# with ASP.NET Core
- Entity Framework Core for database management
- Razor Pages for frontend development
- SQL Server for the database
- Real-time collaboration features for users.
- Integration with third-party APIs for expanded functionality.
This project was developed as part of my PROG7311 Programming 3A POE.
Developed by Thato - GitHub Profile