Skip to content

【Hit that ⭐️ if you like what you see!】A Flask-based web application serving as a comprehensive biosecurity guide for agricultural pests and weeds in New Zealand. Features role-based access control, detailed pest/weed information management, and responsive design for agronomists, staff, and administrators.

License

Notifications You must be signed in to change notification settings

ChanMeng666/biosecurity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Biosecurity Guide for Agricultural Pests and Weeds 🌱


👉Try It Now!👈


2024-12-14.15-12-33.mp4

screencapture-1160210-pythonanywhere-2024-12-08-13_07_57

screencapture-1160210-pythonanywhere-auth-login-2024-12-08-13_08_37

screencapture-1160210-pythonanywhere-admin-home-2024-12-08-13_08_57

screencapture-1160210-pythonanywhere-admin-admin-manage-staff-2024-12-08-13_09_12

屏幕截图 2024-12-08 131000

screencapture-1160210-pythonanywhere-admin-admin-manage-guide-add-2024-12-08-13_10_20

screencapture-1160210-pythonanywhere-agronomist-agronomist-view-guide-2024-12-08-13_10_49

Overview

A Flask-based web application that serves as a comprehensive biosecurity guide for agricultural pests and weeds. This platform provides targeted information and management capabilities for different user roles including Agronomists, Staff, and Administrators.

Project Features:

  • User Role Management: Distinct interfaces and capabilities for Agronomists, Staff, and Administrators
  • Comprehensive Guide: Detailed information about agricultural pests and weeds
  • Responsive Design: Mobile-friendly interface with Bootstrap CSS
  • Image Management: Support for pest and weed image uploads and management
  • Secure Authentication: Role-based access control and secure password handling

Getting Started

Prerequisites

  • Python 3.8+
  • MySQL Server
  • Modern web browser

Dependencies

Flask==3.0.2
mysql-connector-python==8.3.0
Werkzeug==3.0.1
WTForms==3.1.2

Installation

  1. Clone the repository:
    git clone https://github.com/ChanMeng666/biosecurity.git
  2. Install required packages:
    pip install -r requirements.txt
  3. Configure MySQL database:
    # config.py
    class Config(object):
        SECRET_KEY = '123456'
        DATABASE_URI = 'mysql://root:123456@localhost/biosecurity'

Features

User Roles

  • Agronomists: View and access detailed pest and weed information
  • Staff: Manage guide content and agronomist profiles
  • Administrators: Full system access including user management

Database Design

  • Role differentiation with specific permissions
  • User management with role associations
  • Efficient data handling and storage
  • Support for image management

Deployment

The application is deployed on PythonAnywhere and can be accessed at 1160210.pythonanywhere.com

Testing Accounts

Local Environment

Role Username Password
Agronomist agro1 123qweASD@
Staff staff1 123qweASD@
Admin admin1 123qweASD@

PythonAnywhere Environment

Role Username Password
Admin hello777 1234qweASD@
Admin admin0 123qweASD@
Staff staff1 123qweASD@
Agronomist agro1 123qweASD@

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contact

PythonAnywhere: 1160210.pythonanywhere.com

🙋‍♀ Author

Created and maintained by Chan Meng.

About

【Hit that ⭐️ if you like what you see!】A Flask-based web application serving as a comprehensive biosecurity guide for agricultural pests and weeds in New Zealand. Features role-based access control, detailed pest/weed information management, and responsive design for agronomists, staff, and administrators.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published