The Farmers Assistant project is a web application built using Laravel and Tailwind CSS. It provides a platform for farmers, admins, and advisors to interact and facilitate farming-related activities. Users can register, login, and perform specific actions based on their roles.
-
User Roles
- Admin: Responsible for managing the application, including adding/removing advisors and setting subscription prices.
- Farmer: Can register, login, and purchase agricultural products from the platform.
- Advisor: Can register, login, and provide assistance to subscribed farmers via email.
-
Registration and Login
- All users (Admin, Farmer, Advisor) can register and log in to access their respective functionalities.
-
Product Purchase
- Farmers can browse and purchase various agricultural products available on the platform.
-
Subscription System
- Farmers can choose to subscribe to the platform by paying a subscription fee.
- Subscribing farmers get access to additional features, including assistance from advisors through email.
- Admins can manage subscriptions, set subscription prices, and view subscribed farmers.
-
Discounts
- Subscribed farmers receive discounts on agricultural products.
To set up the Farmers Assistant project locally, follow these steps:
- Clone the repository from GitHub.
git clone <repository-url>
- Install the required dependencies using Composer.
composer install
-
Create a
.env
file from the.env.example
file and update the database and other configuration settings as required. -
Generate a new application key.
php artisan key:generate
- Run the database migrations to set up the necessary database tables.
php artisan migrate
- Seed the database (if required) with initial data such as admin credentials, advisor details, etc.
php artisan db:seed
- Compile the frontend assets using pnpm (assuming Node.js is already installed).
pnpm install
pnpm dev
- Start the development server.
php artisan serve
- Access the application in your browser by visiting the URL displayed in the terminal.