How yoarpit/socium works
Project Type and Purpose
• This is a full-stack social media application (“Socium”) with a React.js frontend (built with Vite) and a FastAPI backend.
• The frontend handles user interactions, routing, and state, while the backend exposes RESTful endpoints for authentication, posts, comments, likes, notifications, and user management.
File-Structure Analysis
• Top-level “frontend” and “backend” directories clearly separate the UI from the API.
• The backend follows a layered structure:
• app/main.py – the FastAPI app entrypoint
• app/api/v1 – versioned routers for each resource (auth, post, comment, likes, notification, users)
• app/services – business logic for each domain area
• app/db – database models/session setup (SQLAlchemy)
• app/schemas – Pydantic DTOs for request/response validation
• app/core, app/utils, app/configure – cross-cutting concerns (security, email, media handling)
• No obvious microservices—this is a monolithic API with clear logical separation of concerns.
README Insights
• Confirms the tech stack: FastAPI for backend APIs, React.js for frontend.
• Intended as a simple social media platform, so core components are user authentication, post management, interactions (likes/comments), and notifications.