A comprehensive digital platform for running evidence-based pain management support groups with participant tracking, assessments, analytics, and educational resources.
This platform supports an 8-week pain management curriculum with: - 32 Sessions (4 sessions per week, 2.5 hours each) - Evidence-based content on pain neuroanatomy, medications, and holistic approaches - Participant empowerment through education and self-advocacy - Safe forum for discussing pain management without fear of retaliation - Comprehensive tracking of pain levels, assessments, and progress
psmg_platform/
βββ api/ # Flask REST API
β βββ app.py # Main application
β βββ models/ # Database models
β β βββ models.py
β βββ routes/ # API endpoints
β βββ auth_routes.py # Authentication
β βββ participant_routes.py # Participant management
β βββ assessment_routes.py # Assessments
β βββ analytics_routes.py # Analytics & reporting
βββ docs/ # Documentation
β βββ Facilitator_Scripts_Week1.md
β βββ Week1_Daily_Workbook.md
β βββ Week2_Daily_Workbook.md
β βββ Complete_Facilitators_Guide.md
βββ config/ # Configuration files
βββ tests/ # Test suite
βββ requirements.txt # Python dependencies
βββ docker-compose.yml # Docker orchestration
βββ Dockerfile # Container definition
βββ .env.example # Environment variables template
βββ run.sh # macOS execution script
βββ README.md # This file
# 1. Make scripts executable
chmod +x dev-setup.sh run.sh
# 2. Run initial setup (installs dependencies, creates database)
./dev-setup.sh
# 3. Configure environment variables
cp .env.example .env
# Edit .env with your settings
# 4. Initialize and start the platform
./run.sh setup
./run.sh start
The API will be available at: http://localhost:5000
# Start all services
docker-compose up -d
# View logs
docker-compose logs -f
# Stop services
docker-compose down
./run.sh check # Check prerequisites
./run.sh setup # Complete project setup
./run.sh start # Start backend + frontend servers
./run.sh stop # Stop all services
./run.sh test # Run test suite
./run.sh analytics # Generate analytics reports
./run.sh docker-build # Build Docker images
./run.sh docker-up # Start Docker containers
./run.sh docker-down # Stop Docker containers
./run.sh clean # Remove build artifacts
./run.sh help # Show all commands
# Run all tests
./run.sh test
# Run specific test file
pytest tests/test_auth.py
# Run with coverage
pytest --cov=api tests/
users - Authentication and user accountsparticipants - Participant profiles and medical
infofacilitators - Facilitator profilescohorts - 8-week program groupscohort_enrollments - Participant-cohort
relationshipssessions - Individual session recordssession_attendance - Attendance trackingassessments - All assessment responsespain_logs - Daily pain trackingresources - Educational materialsgit checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)This project is licensed under the MIT License - see LICENSE file for details.
For technical support or questions: - Email: support@psmg-platform.org - Documentation: API_DOCUMENTATION.md - Issues: GitHub Issues (if repository is public)
Version: 1.0.0
Last Updated: January 2026
Status: Production Ready β