How book-social-network/front_end works
Project type and purpose
• This is a React single‐page application (SPA) that provides a book‐centric social platform with two main user roles: Admin and User.
• Features (inferred from file names): user authentication, group creation/joining, posting and commenting on books, real‐time notifications (Pusher), admin dashboards for managing books/authors/groups/posts/users/types, and standard profile/leaderboard functionality.
File structure
• Top‐level:
• public/ – static HTML, manifest, robots.txt
• src/ – application source code
• src/index.js, src/App.jsx – entry points, root router
• src/routes/index.js – React Router configuration
• src/middleware/useAuth.jsx – authentication wrapper
• src/layout – high‐level layout per role:
• Admin/Components & Pages
• User/Components & Poster
• src/pages – feature pages (Login, Register, HomePage, DetailBook, CreateGroup, etc.)
• src/assets & src/css – static assets (images, banners) and CSS by feature
• package.json, .env – project dependencies and environment variables
README for additional insights
• Simple “npm install” & “npm run dev” process
• Requires the backend to be running before the front‐end