How luannguyenthien/ssmedia-fe works
Project type and purpose
• This is a Single-Page Application (SPA) front end built with React, Vite, and Tailwind/PostCSS.
• It implements a social-media-style UI: chat, posts, notifications, profiles, admin dashboard, etc.
• It uses Redux Toolkit for state, a mock server for local API development, and real HTTP/WebSocket services for production.
File structure
• Top-level build & orchestrator files: Dockerfile, docker-compose.yml, Vite & ESLint configs.
• /src contains:
• main.jsx & index.html entrypoints
• pages/ – routed pages (auth, social, admin, error)
• components/ – UI building blocks (cards, buttons, chat window, modals, header, sidebar…)
• redux-toolkit/ – API slices & reducers, global store.js
• services/ – API clients (axios, REST services under /api/*) and a Socket service
• hooks/ – reusable React hooks
• mocks/ – MSW server, handlers & fake data for local dev/testing
• Build & deploy concerns: Docker, GitHub Actions CI, ESLint, PostCSS, Tailwind, Vite build.
Key architecture insights from README
• Vite + React fast-refresh dev server
• ESLint config for code quality
• Suggestion to extend into TS for production (not presently used)