Medi Vision AI is a full-stack, AI-powered medical shop ERP for billing, inventory management, customer CRM, face recognition, and automated reordering. It combines a Flask backend with a SQLite database and a web dashboard to help manage day-to-day pharmacy operations from one place.
- Billing and invoice management
- Medicine inventory tracking
- Shelf mapping for medicine locations
- Customer and supplier CRM
- Doctor records
- Face recognition support for customer handling
- Reorder alerts and stock monitoring
- Create and activate a Python virtual environment:
python -m venv .venv
.venv\Scripts\activate- Install the dependencies:
pip install -r requirements.txt- Start the application:
python run.py- Open the app in your browser:
http://127.0.0.1:5001
run.pyis the local development entrypoint.wsgi.pyis the production entrypoint.backend/app_factory.pybuilds the Flask app and registers routes.backend/db.pyholds database setup, migrations, and shared row helpers.backend/routes/contains the route groups split by feature area.frontend/templates/dashboard.htmlis the main UI entrypoint served at/.frontend/static/holds the browser assets used by the dashboard.
- The app uses SQLite by default and creates
database.dbin the project folder. - You can set
PHARMACY_DB_PATHif you want to use a different database location, and it can be relative to the project root. - The app loads a local
.envfile automatically from the project root. - See .env.example for the suggested template.