How phongnickchinh/cnpm-20231 works
Project type and purpose
• From the README and file tree, this is a full-stack web application: a Java Spring Boot RESTful back-end paired with a jQuery-based front-end that lives under src/main/resources/public.
• Its purpose is to manage roommate expenses in dormitory rooms: user sign-up, join/create rooms, record personal and room-level transactions, view statistics, and send notifications.
File structure
• Top-level directories:
• src/main/java/.../controller, service, repository, model, dto, config → the layered Spring Boot back-end
• src/main/resources/public → static front-end assets (HTML, CSS, JS, images)
• src/main/resources/application*.properties → environment configurations
• pom.xml, mvnw → Maven build and wrapper
• bin/ and frontend/ appear to be clones or staging but can be ignored for core architecture
• Spring Boot layers follow MVC / layered-architecture:
• Controller layer (REST endpoints)
• Service layer (business logic)
• Repository layer (data access via Spring Data JPA)
• Model/DTO objects
• SecurityConfig indicates there is authentication/authorization (JWT or form-based) protecting certain endpoints.
README for additional insights
• Confirms use of Java Spring Boot and MySQL as the database.
• Front-end uses jQuery to call REST endpoints.
• No external services beyond MySQL are mentioned.