How fan-mon/frontend works
Fanmon is a React-based entertainment app for fans, artists, and management teams. Users enter through the routed app, then use social features, shop for merchandise, or join one-to-one video fan meetings; management has separate artist, team, goods, and dashboard workflows. The README documents these product areas. Edges are limited to relationships shown in excerpts, the source index, or README; backend behavior is represented as an external service because its implementation is not in this tree.
Main entry points: App.js Routed application · CartList.jsx Shopping cart · Buying.jsx Checkout and payment · StayRoom.jsx Meeting waiting room
Components 25
App and community
- Routed application
src/App.js - Account access
src/pages/user/Login.jsx - Fan home
src/pages/user/Main.jsx - Community boards
src/pages/board/ArtistBoard.jsx - Board selection
src/pages/board/BoardPage.jsx - Chat experience
src/pages/chat/ChatPage.js - Chat room view
src/pages/chat/ChatRoom.jsx - Chat subscriptions
src/pages/chat/chatAPI/subscription.js - API client
src/apiClient.js
Management
- Management dashboard
src/pages/management/DashBoard.jsx - Artist management
src/pages/management/artist/ArtistDetail.jsx - Team management
src/pages/management/team/TeamDetail.jsx - Goods management
src/pages/management/goods/GoodsForm.jsx
Merchandise shop
- Goods catalog
src/pages/shop/goods/GoodsList.jsx - Goods details
src/pages/shop/goods/GoodsDetail.jsx - Shopping cart
src/pages/shop/cart/CartList.jsx - Checkout and payment
src/pages/shop/buy/Buying.jsx - Purchase result
src/pages/shop/buy/Bought.jsx
Video meetings
- Meeting room list
src/pages/meetingroom/StayRoomList.jsx - Create meeting room
src/pages/meetingroom/CreateRoom.jsx - Meeting waiting room
src/pages/meetingroom/StayRoom.jsx - Live video meeting
src/pages/meetingroom/MeetingRoom.jsx - WebRTC support
src/pages/meetingroom/js/webRTC.js
Other components
- Fan or member
- Backend API
Connections 36
- Fan or member → Routed application: opens
src/App.js - Routed application → Account access: routes to
src/App.js - Routed application → Fan home: routes to
src/App.js - Routed application → Board selection: routes to
src/App.js - Routed application → Chat experience: routes to
src/App.js - Routed application → Goods catalog: routes to
src/App.js - Routed application → Shopping cart: routes to
src/App.js - Routed application → Checkout and payment: routes to
src/App.js - Routed application → Management dashboard: routes to
src/App.js - Routed application → Create meeting room: routes to
src/App.js - Board selection → Community boards: renders
src/pages/board/BoardPage.jsx - Chat experience → Chat room view: renders
src/pages/chat/ChatPage.js - Chat room view → Chat subscriptions: loads artist data
src/pages/chat/ChatRoom.jsx - Fan or member → Account access: signs in
- Fan or member → Community boards: uses boards
- Fan or member → Chat experience: chats
- Fan or member → Goods catalog: browses goods
- Goods catalog → Goods details: opens details
src/pages/shop/goods/GoodsList.jsx - Goods details → Shopping cart: adds to cart
- Shopping cart → Checkout and payment: starts payment
src/pages/shop/cart/CartList.jsx - Checkout and payment → Purchase result: completes purchase
- Fan or member → Management dashboard: manages operations
- Management dashboard → Backend API: fetches metrics
src/pages/management/DashBoard.jsx - Artist management → Backend API: manages artists
src/pages/management/artist/ArtistDetail.jsx - Team management → Backend API: manages teams
src/pages/management/team/TeamDetail.jsx - Goods management → Backend API: manages goods
src/pages/management/goods/GoodsForm.jsx - Community boards → Backend API: loads and posts
src/pages/board/ArtistBoard.jsx - Shopping cart → Backend API: reads and updates cart
src/pages/shop/cart/CartList.jsx - Checkout and payment → Backend API: saves purchase
src/pages/shop/buy/Buying.jsx - Fan or member → Meeting room list: joins fan meeting
- Meeting room list → Meeting waiting room: selects room
- Create meeting room → Backend API: creates room
src/pages/meetingroom/CreateRoom.jsx - Meeting waiting room → Backend API: loads room details
src/pages/meetingroom/StayRoom.jsx - Meeting waiting room → Live video meeting: enters meeting
- Live video meeting → WebRTC support: uses WebRTC
src/pages/meetingroom/MeetingRoom.jsx - API client → Backend API: configures API access
src/apiClient.js