-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Ruby Bui edited this page May 11, 2025
·
1 revision
Welcome to the mind-matter wiki!
Mind Matter is a mental health and wellness application that helps users track their mood, participate in surveys, and engage in wellness campaigns. The application consists of a Flask backend API and a React frontend.
- Framework: Flask (Python)
- Database: SQLAlchemy ORM
- API Documentation: Flasgger (Swagger)
- Authentication: JWT-based authentication
- Schema Validation: Marshmallow
- Framework: React
- Deployment: Vercel
- URL: Mind Matter Frontend
- User registration and authentication
- Profile management
- Data sharing preferences
- Dynamic survey creation and management
- Multiple question types support
- Survey scheduling and notifications
- Response tracking and analysis
- Daily mood logging
- Activity tracking
- Historical data visualization
- Wellness campaign participation
- Incentive management
- Reward system
- Emergency contact management
- Quick access to support resources
-
POST /auth/register- User registration -
POST /auth/login- User login -
POST /auth/refresh- Token refresh
-
GET /surveys- List all surveys -
POST /surveys- Create new survey -
GET /surveys/{id}- Get survey details -
POST /surveys/{id}/responses- Submit survey response -
GET /surveys/{id}/responses- Get survey responses
-
GET /users/me- Get current user profile -
PUT /users/me- Update user profile -
GET /users/me/responses- Get user's survey responses
-
users- User information -
surveys- Survey definitions -
survey_questions- Survey questions -
survey_responses- User responses -
survey_answers- Individual answers -
mood_activity_logs- Mood and activity tracking -
campaigns- Wellness campaigns -
emergency_contacts- Emergency contact information
- Docker and Docker Compose
- Python 3.12.8
- Node.js (for frontend development)
- Clone the repository
- Copy
.env.exampleto.env - Build Docker containers:
docker compose build
- Start development server:
docker compose up mind-matter-flask-dev
- Initialize database:
docker compose run --rm mind-matter-manage db init
- Create migrations:
docker compose run --rm mind-matter-manage db migrate
- Apply migrations:
docker compose run --rm mind-matter-manage db upgrade
- Run tests:
docker compose run --rm mind-matter-manage test - Run linter:
docker compose run --rm mind-matter-manage lint
- Build production Docker image
- Configure environment variables
- Deploy to your preferred hosting service
- Frontend is automatically deployed to Vercel
- Environment variables are managed through Vercel dashboard
- Flask Documentation
- SQLAlchemy Documentation
- Marshmallow Documentation
- React Documentation
- Flask Caching Documentation
- Swagger UI available at:
http://localhost:5000/apidocs(when running locally)
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
[Add your license information here]