How satishvudata98/admin-panel works
Project type and purpose
• This is a full-stack web application (“Admin Panel”) composed of:
• A React/JavaScript single-page application (frontend)
• A Node.js/Express REST API (backend)
• A database layer (via Supabase client or another RDBMS)
• Purpose: user registration, login, and access to protected routes. Frontend holds user state in context, backend issues and validates JWTs, and persists user data.
File structure
• Top-level directories:
• backend/
• frontend/
• backend/config contains database (db.js), JWT (jwtConfig.js), and Supabase client setup.
• backend/controllers routes business logic for authentication.
• backend/routes maps REST endpoints (/auth/register, /auth/login).
• frontend/src/api contains Axios wrapper (axios.js).
• frontend/src/context holds UserContext for global user state.
• frontend/src/components holds login, registration, protected-route, navigation, home view.
README
• Confirms React frontend on port 3000, Express backend on port 5000.
• Authentication, JWT, REST API, protected routes.
• Development & deployment instructions.