pip install -r requirements.txtEdit .env and add your Groq API key:
GROQ_API_KEY=your_key_here
python run.pyThe app will start at http://localhost:5000
A default admin account is created automatically:
- Email:
admin@medintel.com - Password:
admin123
medintel/
├── app.py # Main Flask app & all routes
├── models.py # Database models (SQLAlchemy)
├── health_score.py # AI health score engine
├── run.py # Startup script (creates DB + admin)
├── requirements.txt
├── .env # GROQ_API_KEY goes here
├── heart.csv # Heart disease training data
├── ml_models/ # Trained ML models (auto-generated)
├── static/css/
│ └── style.css
└── templates/
├── base.html
├── index.html
├── login.html / register.html
├── dashboard.html
├── doctor_dashboard.html
├── admin.html
└── ... (all other pages)
- Patient – health data, BMI, AI predictions, appointments, prescriptions
- Doctor – view patients, manage appointments, write prescriptions
- Admin – system overview panel
base.html– Missing<script>tag (JS was running as raw HTML text)app.py– Admin users had no dashboard redirect (infinite loop)app.py–predictionroute didn't passdetailsto template on GETapp.py–if not user:block was broken after a bad editapp.py–load_model()now falls back to root directory for.pklfilesapp.py– All deprecatedUser.query.get()calls updated todb.session.get()