How ayjuyaas/summer-project works
Project type and purpose
• TheraFind is a full-stack web application with an ML microservice.
• Purpose: recommend therapists based on user-entered mental health concerns, support user-therapist communication, and perform real-time chat.
File structure
• Top-level directories:
• frontend – React/Vite/Tailwind UI code
• backendNode – Node.js/Express REST API, WebSocket server, authentication, business logic
• backendFlask – Python/Flask ML microservice for problem identification
• Key patterns:
• MVC-style organization in backendNode (models, controllers, routes)
• Socket folder for real-time messaging (backendNode/src/socket and frontend/src/socket)
• Separate ML service in Flask, loading Keras model and TF-IDF vectorizer
• Config files: .env, package.json, tsconfig, Vite config for frontend; .env.example for backend; Python dependencies implied by README.
README for additional insights
• Stack summary: React.js + Tailwind, Node.js + Express, Flask + TensorFlow/Sci-kit, MongoDB
• Three servers:
• Frontend at localhost:5173
• Node backend at localhost:5000
• Flask ML service at localhost:5001
• Database: MongoDB, with URI in .env