Project Detail
SoulSpace Backend
SoulSpace Backend powers authentication, journals, community posts, expert appointments, realtime chat, tests, gamification, notifications, admin workflows, moderation, reports, and AI-assisted mental health features.
Backend Developer
Built backend services for a mental health platform

Responsibilities
- Designed backend services with Service-Based Architecture and Layered Architecture.
- Implemented API flows for authentication, journal, community, expert, appointment, chat, admin, moderation, and report modules.
- Integrated MongoDB, JWT authentication, WebSocket chat, file storage, email, and push notification services.
- Connected AI sentiment analysis and toxic content detection into product workflows.
Key Features
- FastAPI backend with automatic API docs for development and testing.
- MongoDB data layer for flexible mental health, community, and appointment data.
- Realtime chat flow using WebSocket rooms.
- AI features for journal sentiment analysis and community content moderation.
Outcomes
- Delivered backend services that support cross-platform clients in the SoulSpace ecosystem.
- Created clear technical documentation through README and report assets.
- Structured the backend so future modules can be added without breaking core flows.
README Overview
System Architecture
The backend follows a Service-Based Architecture combined with Layered Architecture: API Gateway, Service Layer, Data/AI services, and external integrations.
Core Stack
Service Layer
Auth Service
Register, login, JWT
Journal Service
Emotion journal and AI analysis
Community Service
Anonymous posts and moderation
Expert Service
Expert profile and verification
Appointment Service
Consultation booking
Chat Service
Realtime WebSocket rooms
Admin Service
Platform management
Report Service
Violation report handling
Run Locally
python -m venv venvpip install -r requirements.txtcp .env.example .envuvicorn main:app --reload --host 0.0.0.0 --port 8000Main API Endpoints
/auth/register/auth/login/journal/community/posts/appointments/ws/chat/{room_id}/tree/water/testsTeam
- Tran Dinh Phuong Linh - 22520778
- Dang Thi Ngoc Minh - 22520857
- Nguyen Khanh Huy - 22520560
- Tran Bao Phu - 22521104
Documents
Architecture Images
