Back to portfolioOctober 2025 - December 2025

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.

FastAPIPythonMongoDBAI ServicesWebSocket
Role

Backend Developer

Highlight

Built backend services for a mental health platform

SoulSpace Backend system architecture diagram
Service-based backend architecture

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

Python 3.11+FastAPIUvicornPydanticMongoDB AtlasMotorCloudinaryRoBERTascikit-learnAssemblyAIExpo Push

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 8000

Main API Endpoints

POST/auth/register
POST/auth/login
POST/journal
GET/community/posts
POST/appointments
WS/ws/chat/{room_id}
POST/tree/water
GET/tests

Team

  • Tran Dinh Phuong Linh - 22520778
  • Dang Thi Ngoc Minh - 22520857
  • Nguyen Khanh Huy - 22520560
  • Tran Bao Phu - 22521104

Documents

Architecture Images

SoulSpace Backend technology stack
Backend technology stack and integrations