A comprehensive web application for managing agricultural equipment rentals, inventory, bookings and customer relationships. Built with Python Flask and MySQL.
2024-12-14.14-51-19.mp4
- Equipment browsing and searching with detailed product information
- Shopping cart functionality with real-time availability checking
- Online booking and payment processing
- Account management and booking history
- Promotional code support
- Store locator with distance calculation
- Customer messaging system
- Equipment check-in/check-out management
- Real-time inventory tracking
- Equipment maintenance records
- Customer booking management
- Store-specific reporting
- Multi-store inventory management
- Staff and customer management
- Promotional campaign management
- Financial reporting
- Equipment utilization analytics
- Store performance monitoring
- Role-based access control (Customer, Staff, Local Manager, National Manager, Admin)
- Real-time availability checking
- Automated notifications
- Equipment maintenance tracking
- Multi-store support
- Responsive design
- Backend: Python Flask
- Database: MySQL
- Frontend: HTML5, CSS3, JavaScript
- Authentication: Flask-WTF with BCrypt
- Form Handling: WTForms
- Address Validation: Addy API
- Visualization: ECharts
- Additional Libraries:
- geopy (distance calculations)
- mysql-connector-python
- requests
- email_validator
- Python 3.x
- MySQL
- Git
- Clone the repository
git clone https://github.com/ChanMeng666/agrihire-solutions.git
- Create and configure database connection
Create
connect.py
undereoms
folder with your database configuration:
dbuser = "your_username"
dbpass = "your_password"
dbhost = "localhost"
dbport = "3306"
dbname = "agrihire"
- (Optional) Create a virtual environment
python -m venv venv
source venv/bin/activate # Linux/Mac
venv\Scripts\activate # Windows
- Install dependencies
pip install -r requirements.txt
- Create database
- Run
database/agrihire_db+data.sql
to create database schema and sample data - Disable Safe Updates mode in MySQL Workbench if needed
- Start the application
python run.py
All accounts use the same password: Test1234!
Role | |
---|---|
[email protected] | customer |
[email protected] | customer |
Role | |
---|---|
[email protected] | staff |
[email protected] | local manager |
[email protected] | admin |
agrihire/
├── eoms/
│ ├── model/ # Database models
│ ├── route/ # Route handlers
│ ├── form/ # Form definitions
│ ├── static/ # Static assets
│ └── templates/ # HTML templates
├── database/ # SQL scripts
└── requirements.txt # Dependencies
- Fork the repository
- Create a feature branch
git checkout -b feature/AmazingFeature
- Commit your changes
- Push to the branch
- Open a Pull Request
Please read our Code of Conduct before contributing.
Distributed under the Apache-2.0 license.
Project Link: https://agrihireaq.pythonanywhere.com/
Created and maintained by Chan Meng.