How gpiiltd/wenaija_admin_app works
Project type and purpose
• This is a front-end React single-page application (SPA) written in TypeScript.
• It provides a dashboard UI with authentication, user/role management, survey-reporting, leaderboard, institutions management, etc.
• It uses Redux Toolkit (slices & thunks) for state management, React Router for navigation, Tailwind CSS for styling, and a simple network module (https.ts) to call out to RESTful APIs.
File structure
• Top-level:
• public/ – static assets and index.html
• src/ – all application code
• .github/, .husky/, ESLint/Prettier configs – CI/CD and code-quality
• src/components/ – reusable UI components (buttons, cards, modals, charts…)
• src/pages/ – route-level page components (login, dashboard, users, institutions)
• src/navigation/ – React Router setup and route names
• src/features/ – Redux “ducks” (slice, service, thunk) organized by domain (auth, dashboard, reports, institutions, etc.)
• src/network/https.ts – centralized HTTP client for API calls
• src/state/store.ts – Redux store setup combining all slices
• src/config.ts – environment and API-endpoint configuration
README
• It confirms the SPA nature, Node/npm scripts for dev and build, and documents one component’s API (Button).