Get started in 5 minutes! Perfect for academic demonstrations and peer reviews.
Psychological Disorder Diagnosis Training Tool - Practice diagnostic skills with DSM-5 based clinical cases.
- Python 3.8+ installed
- Node.js 14+ and npm installed
- Basic terminal/command line familiarity
cd diagnosis_quiz_tool# Create virtual environment (first time only)
python3 -m venv venv
# Activate virtual environment
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txtcd frontend
npm install
cd ..# Option A: Using the startup script
./start_server.sh
# Option B: Manual start
source venv/bin/activate
export FLASK_APP=src.app:create_app
export PYTHONPATH=$(pwd):$PYTHONPATH
python3 -m flask run --host=0.0.0.0 --port=5000Backend will be available at: http://localhost:5000
cd frontend
npm startFrontend will open automatically at: http://localhost:3000
- Open Browser: Navigate to http://localhost:3000
- Generate Quiz: Click "Start Quiz" and configure options
- Take Quiz: Answer diagnostic questions
- View Results: See your score and performance analytics
Test the backend directly:
# Health check
curl http://localhost:5000/api/health
# Generate a quiz
curl -X POST http://localhost:5000/api/quiz/generate \
-H "Content-Type: application/json" \
-d '{"num_questions": 5, "num_choices": 4}'
# Browse cases
curl http://localhost:5000/api/cases?limit=10The app runs in demo mode by default (no authentication required).
To customize, edit .env file:
# No authentication (default for academic use)
REQUIRE_AUTH=False
DEMO_MODE=True
# Enable authentication (optional)
REQUIRE_AUTH=True
# Then generate secret keys:
# python -c "import secrets; print(secrets.token_urlsafe(32))"- ✅ Quiz Generation: Create custom diagnostic quizzes
- ✅ Case Browsing: Explore 119 clinical cases
- ✅ Multiple Difficulty Levels: Basic to advanced
- ✅ Performance Analytics: Detailed scoring and feedback
- ✅ 15 DSM-5 Categories: Comprehensive mental health coverage
- ✅ No Login Required: Perfect for demonstrations
# Change port in .env file
FLASK_PORT=5001# Ensure virtual environment is activated
source venv/bin/activate
# Ensure PYTHONPATH is set
export PYTHONPATH=$(pwd):$PYTHONPATHcd frontend
rm -rf node_modules package-lock.json
npm install- Read README.md for comprehensive documentation
- See ATTRIBUTION.md for development credits
- Check PRODUCTIONIZATION_STATUS.md for technical details
- Review test results:
pytest tests/ -v - Run smoke test:
python smoke_test.py
This tool is designed for:
- Psychiatric/psychological education
- Clinical psychology training
- Mental health professional development
- Diagnostic reasoning research
- Psychology curriculum development
No authentication required for demo mode - perfect for showing to peers and professors!
- Check logs in
logs/api.log - Run smoke test:
python smoke_test.py - Check server status:
curl http://localhost:5000/api/health - Review error messages for specific issues
- Test API endpoints:
python test_api.py
Ready to share with peers! The app works out-of-the-box with no configuration needed.