How nhatnguyen150100/myceph-client works
Project Type and Purpose
• This project is a client-side web application built with ReactJS. It serves as the user interface for the broader Myceph application, which focuses on cephalometric analysis and other dental/medical record functionalities.
• The project integrates multiple UI libraries (Bootstrap 5.3, Material UI, Konvajs) and leverages internationalization and routing. It is primarily a Single Page Application (SPA) meant to interact with APIs (using services) and manage state via Redux-Toolkit.
File Structure
• Key top-level directories/files:
• "public": Contains assets, fonts, and static HTML/CSS files.
• "src": Contains the core React application.
• "auth": Components for user authentication (login, register, forgot password).
• "common": Reusable UI components like buttons, modals, input fields.
• "components": Larger, layout-level components (navbar, loading modal, selection components).
• "config": Configurations for integrating external services like Cloudinary and Google ReCAPTCHA.
• "locales": Handles multi-language translation (English and Vietnamese).
• "mocks": Contains sample data, likely used for testing or initial configurations.
• "pages": Hosts a wide array of feature-related pages including functionality for calculators, calendars, discussion (with Socket.IO integration), lateral cephalometric analysis, imaging library, medical records, patient lists, and settings.
• "redux": Implements state management using Redux-Toolkit, with slices defined for different concerns (clinic, patient, calendar, etc.).
• "services": Includes API call extensions and token refresh functionality.
• "translation": Additional configuration for internationalization.
• Build/configuration files: "webpack.config.js", ".babelrc", "postcss.config.js", along with npm-specific files.
Readme Insights
• The README clearly outlines the directory structure and the role of different modules. It emphasizes authentication, various features (like cephalometric analysis, calendar scheduling, discussion using Socket.IO), and state management.
• The README also explains the build process and deployment instructions, making it clear that Webpack is used heavily in development and production builds.