How alap06/crt_platforme works
Project type and purpose
• This is a full-stack donation platform for “Croissant Rouge Tunisien” (Tunisian Red Crescent), with user authentication, admin management, and donation/project tracking.
• The backend is an Express/Node.js REST API; the frontend is a React/Vite single-page app.
File structure
• Top-level:
• backend/ – Express app
• frontend/ – React app
• backend follows an MVC-style organization:
• config/db.js – database connection setup
• models/ – data schemas (User.js…)
• controllers/ – business logic (authController, adminController)
• routes/ – express routers per domain (authRoutes, adminRoutes)
• middlewares/ – request validation, authorization
• server.js – main entry point
• frontend is component-driven:
• src/api/ – wrapper modules for calling backend endpoints
• src/components/ – UI components & pages
• src/context/ – React Contexts for auth and theme
• src/hooks/ – custom hooks (useApi, useAuth)
• services/mockData.js – sample or fallback data
README for additional insights
• Very brief, confirms it’s a donation & regional project-management platform.