University healthcare platform with role-based access for students, doctors, dispensary staff, and administrators.
- Frontend: React + Tailwind CSS (
front-end/) - Backend: Java Spring Boot + MySQL (
backend/) - AI helpers: Python Flask services for Gemini-based advice (
GeminiAiApi/) and a local NLTK/Torch chatbot (zBOT/)
Secrets are not stored in the repository. Copy the example env file and set values locally:
cp .env.example .env
# edit .env with your database password, API keys, and JWT secretSpring Boot reads sensitive settings from environment variables (see backend/src/main/resources/application.properties). Export the same variables before starting the backend, or use a tool that loads .env into the process environment.
For GeminiAiApi, set at least GEMINI_API_KEY and HUGGINGFACE_API_TOKEN.
Demo login accounts for local development should be created in your own database; do not commit real passwords to git.
cd front-end
npm install
npm run devApp: http://localhost:5173
- Create a MySQL database (default name
uni_health). - Export
DB_*,OPENAI_API_KEY, andJWT_SECRET(see.env.example). - Run:
cd backend
./mvnw clean install
./mvnw spring-boot:runAPI: http://localhost:8000
cd zBOT
python3 -m venv venv
source venv/bin/activate
pip install Flask flask-cors numpy pyspellchecker nltk torch torchvision
python -c "import nltk; nltk.download('punkt')"
python train.py
python chat.pycd GeminiAiApi
python3 -m venv venv
source venv/bin/activate
pip install flask requests pillow flask-cors google-generativeai python-dotenv
# ensure GEMINI_API_KEY and HUGGINGFACE_API_TOKEN are set
python app.pySee DesignPattern/README.md for notes on patterns used in the frontend and backend.
- Diptajoy Mistry
- Rasel Hossen