Skip to content

πŸ₯ Modern Pharmacy Management System built with Flask & Firebase. Features inventory tracking, medicine database, prescription management, order processing, supplier management, and real-time analytics. Supports English & Arabic with secure authentication and cloud integration. πŸ’ŠπŸ“Š

Notifications You must be signed in to change notification settings

DAVIXSX/pharmacy-management-system

Repository files navigation

(PharmaSys) - Modern Pharmacy Management System

License Flask Firebase

πŸš€ Project Overview

KicksUp (PharmaSys) is a comprehensive pharmacy management system built with Flask and Firebase. It provides a complete solution for managing pharmacy operations including inventory tracking, medicine management, prescription handling, order processing, and sales reporting.

✨ Key Features

  • πŸ“Š Dashboard Analytics - Real-time insights into pharmacy operations with interactive charts
  • πŸ’Š Medicine Management - Complete medicine database with expiry tracking
  • πŸ“‹ Inventory Control - Stock level monitoring with low inventory alerts
  • πŸ“ Prescription Management - Process and track patient prescriptions
  • πŸ›’ Order Processing - Create and manage customer orders with integrated billing
  • 🏒 Supplier Management - Maintain supplier information and purchase history
  • 🌐 Multilingual Support - Full support for English and Arabic languages
  • πŸ” Secure Authentication - Firebase-based user authentication with role management
  • ☁️ Cloud Integration - Firebase Firestore for reliable data storage

πŸ› οΈ Technical Stack

  • Backend: Flask (Python 3.7+)
  • Database: Firebase Firestore
  • Frontend: HTML5, CSS3, JavaScript with Jinja2 templates
  • Authentication: Firebase Authentication
  • Storage: Google Cloud Storage (optional)

πŸ“¦ Installation & Setup

Prerequisites

  • Python 3.7 or higher
  • Firebase project (optional, for production use)
  • Git

Local Development Setup

  1. Clone the repository

    git clone https://github.com/DAVIXSX/pharmacy-management-system.git
    cd pharmacy-management-system
  2. Create and activate virtual environment

    # Windows PowerShell
    python -m venv .venv
    .\.venv\Scripts\Activate
    # Linux/macOS
    python -m venv .venv
    source .venv/bin/activate
  3. Install dependencies

    pip install -r requirements.txt
  4. Configure Firebase (Optional)

    • Create a Firebase project at Firebase Console
    • Enable Firestore Database
    • Create a service account and download the JSON key
    • Set environment variable:
    # Windows PowerShell
    $env:GOOGLE_APPLICATION_CREDENTIALS = 'C:\path\to\serviceAccount.json'
    # Linux/macOS
    export GOOGLE_APPLICATION_CREDENTIALS='/path/to/serviceAccount.json'

    Note: If no Firebase credentials are provided, the app will use mock data for development.

  5. Run the application

    python app.py
  6. Access the application Open your browser and navigate to http://127.0.0.1:5000

πŸ—‚οΈ Project Structure

kicksup/
β”œβ”€β”€ app.py                    # Main Flask application
β”œβ”€β”€ firebase_config.py        # Firebase configuration
β”œβ”€β”€ firebase_client.py        # Firebase client utilities
β”œβ”€β”€ translations.py           # Multilingual support
β”œβ”€β”€ templates/               # HTML templates
β”‚   β”œβ”€β”€ base.html           # Base template
β”‚   β”œβ”€β”€ login.html          # Authentication pages
β”‚   β”œβ”€β”€ index.html          # Dashboard
β”‚   β”œβ”€β”€ inventory.html      # Inventory management
β”‚   β”œβ”€β”€ medicines.html      # Medicine database
β”‚   β”œβ”€β”€ orders.html         # Order management
β”‚   └── ...                 # Other templates
β”œβ”€β”€ static/                 # Static assets (CSS, JS, images)
β”œβ”€β”€ requirements.txt        # Python dependencies
└── README.md              # This file

πŸ“± Screenshots

Login & Authentication

Login Secure Firebase-based authentication system

Dashboard Analytics

Dashboard Real-time pharmacy analytics with interactive charts and key performance metrics

Inventory Management

Inventory Comprehensive inventory tracking with low stock alerts

Medicine Database

Medicines Complete medicine catalog with expiry date monitoring

Order Processing

Orders Streamlined order management and billing system

Supplier Management

Suppliers Maintain supplier relationships and purchase history

Business Reports

Reports Generate comprehensive business insights and reports

Contact & Support

Contact Integrated support and communication features

🎯 Usage

  1. Login/Register: Create an account or login with existing credentials
  2. Dashboard: View pharmacy performance metrics and analytics
  3. Inventory: Manage stock levels and receive low inventory alerts
  4. Medicines: Add, edit, and track medicine information and expiry dates
  5. Orders: Process customer orders and manage billing
  6. Suppliers: Maintain supplier relationships and purchase history
  7. Reports: Generate comprehensive business reports

πŸ“š Documentation & Support

  • Templates: Located in templates/ directory, using Jinja2 templating
  • Static Files: CSS, JavaScript, and images in static/ directory
  • Database: Uses Firebase Firestore with automatic fallback to mock data
  • Authentication: Integrated Firebase Authentication with session management

🀝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request. For major changes:

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

πŸ“ License

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

πŸ“ž Contact

πŸ“§ Email: nexgendev.davis@gmail.com


Built with ❀️ for pharmacy management

About

πŸ₯ Modern Pharmacy Management System built with Flask & Firebase. Features inventory tracking, medicine database, prescription management, order processing, supplier management, and real-time analytics. Supports English & Arabic with secure authentication and cloud integration. πŸ’ŠπŸ“Š

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published