How phuongthao0515/quarantine-camp works
Project Type and Purpose
• The README indicates that the system is designed to enhance efficiency and reliability in handling COVID-19 related management tasks.
• The system is a full-stack application using React (Frontend) and FastAPI in Python (Backend) with a MySQL database.
Analyzing the File Structure
• Top-level directories include:
• “frontend” – Contains a React-based application with core files in the “src” directory (components, pages like LoginContainer.js, home.js, report.js, etc.), configuration files (package.json, package-lock.json) and public assets.
• “backend” – Contains Python scripts and modules including main application files (main.py, model.py, database.py) and API routes organized under the “routers” folder (employee.py, patient.py). There is also an “addUser.py” at the project root that might be used for initial setups.
• “Database” – Contains SQL related scripts (e.g., TableTrigger_script.txt, role_privileges.txt) which likely set up database schema or configure database privileges.
• Notable architectural patterns include separation of concerns with distinct directories for frontend and backend that interact as client-server components, while the backend itself may follow an MVC or REST API pattern facilitated by FastAPI.
Instructing the Principal Software Engineer
• Core components like the “Routers” (with endpoints for employees and patients), “Model”, and “Database Handler”.
• That the backend is built with FastAPI.
• Connect:
• Schematic markers for local development tools or scripts like addUser.py.