{"id":23174155,"url":"https://github.com/patrickjamesrepo/springbootcrud","last_synced_at":"2025-04-05T00:26:27.763Z","repository":{"id":261155293,"uuid":"883363968","full_name":"PatrickJamesRepo/SpringBootCRUD","owner":"PatrickJamesRepo","description":"Spring Boot CRUD Full Stack Application ","archived":false,"fork":false,"pushed_at":"2024-11-05T16:40:57.000Z","size":188,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-10T08:51:26.404Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PatrickJamesRepo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-04T20:47:06.000Z","updated_at":"2024-11-05T16:41:00.000Z","dependencies_parsed_at":"2024-11-05T02:18:21.712Z","dependency_job_id":"d128b34e-624d-4155-a749-0fbc9abba63b","html_url":"https://github.com/PatrickJamesRepo/SpringBootCRUD","commit_stats":null,"previous_names":["patrickjamesrepo/springbootcrud"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickJamesRepo%2FSpringBootCRUD","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickJamesRepo%2FSpringBootCRUD/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickJamesRepo%2FSpringBootCRUD/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickJamesRepo%2FSpringBootCRUD/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PatrickJamesRepo","download_url":"https://codeload.github.com/PatrickJamesRepo/SpringBootCRUD/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247268461,"owners_count":20911140,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-18T05:19:27.562Z","updated_at":"2025-04-05T00:26:27.745Z","avatar_url":"https://github.com/PatrickJamesRepo.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Login Screen](login.png)\n![Admin Dashboard](admindash.png)\n![Edit Members](editmembers.png)\n# Fitness Club Management System\n\n## Overview\nThe Fitness Club Management System is a web application designed to facilitate the operations of a fitness facility. It offers functionalities for managing memberships, trainers, schedules, and attendance, with a secure authentication system. This project demonstrates the use of a modern web stack with Spring Boot and Thymeleaf to deliver a responsive and user-friendly experience for administrators, trainers, and members.\n\n## Features\n- **Admin Role**:\n    - Login and manage all trainers and members.\n    - Add, update, and delete trainer and member profiles.\n    - View member information and trainer schedules.\n- **Trainer Role**:\n    - Login and manage schedules.\n    - Mark attendance for members.\n    - View the list of assigned members.\n- **Member Role**:\n    - Login and view personal schedule.\n    - Update profile information.\n\n## Technologies Used\n### Backend\n- **Spring Boot**: A Java-based framework for building web applications with integrated capabilities for dependency injection, security, and data management.\n- **Spring Security**: Used to manage authentication and authorization, providing role-based access control for admins, trainers, and members.\n- **Hibernate**: An ORM (Object Relational Mapping) tool used for managing the interaction between Java classes and the database.\n- **Spring Data JPA**: Used to abstract database operations, enabling easy CRUD operations without writing boilerplate SQL code.\n\n### Frontend\n- **Thymeleaf**: A templating engine integrated with Spring Boot to render HTML pages dynamically.\n- **Bootstrap**: A CSS framework used to create a responsive and visually consistent user interface across the application.\n- **JavaScript/jQuery**: Used for front-end interaction and UI components to enhance the user experience.\n\n### Database\n- **H2 Database**: An in-memory relational database used for rapid development and testing. The system can easily be adapted to use MySQL or PostgreSQL in a production environment.\n\n### Other Technologies\n- **Lombok**: Reduces boilerplate code by providing annotations to generate getters, setters, constructors, and other common methods.\n- **PasswordEncoder**: Used to hash user passwords to improve application security.\n\n## Architecture\nThe application follows an MVC (Model-View-Controller) architecture:\n- **Model**: Represents the business entities like `Member`, `Trainer`, and `User`.\n- **View**: HTML pages rendered by Thymeleaf, providing the user interface.\n- **Controller**: Manages the user interactions, processes data, and communicates between the view and the model.\n\n## Setup Instructions\n1. **Clone the Repository**\n   ```bash\n   git clone https://github.com/yourusername/fitness-club-management.git\n   ```\n2. **Navigate to the Project Directory**\n   ```bash\n   cd fitness-club-management\n   ```\n3. **Run the Application**\n   Use the command below to start the Spring Boot application:\n   ```bash\n   ./mvnw spring-boot:run\n   ```\n   The application will be accessible at `http://localhost:8080`.\n\n4. **Login Credentials**\n    - **Admin**: Use the default username `admin` and password `password1` to log in as an administrator.\n    - **Trainer and Member**: Trainers and members can use the credentials created by the admin.\n\n## Usage\n- **Admin Login**: Admins can add, edit, or remove trainers and members, and view all schedules.\n- **Trainer Login**: Trainers can view their assigned members, mark attendance, and manage their schedule.\n- **Member Login**: Members can view their personal schedule, update their profile information, and interact with trainers.\n\n## Endpoints\n### Admin Endpoints\n- `/admin/dashboard` - View the admin dashboard.\n- `/admin/members` - List all members.\n- `/admin/members/add` - Add a new member.\n- `/admin/members/edit/{id}` - Edit an existing member.\n- `/admin/members/delete/{id}` - Delete a member.\n- `/admin/trainers` - List all trainers.\n- `/admin/trainers/add` - Add a new trainer.\n- `/admin/trainers/edit/{id}` - Edit an existing trainer.\n- `/admin/trainers/delete/{id}` - Delete a trainer.\n\n### Trainer Endpoints\n- `/trainer/login` - Trainer login page.\n- `/trainer/dashboard` - View the trainer dashboard.\n- `/trainer/schedule` - View trainer schedule.\n- `/trainer/members` - List members assigned to the trainer.\n- `/trainer/attendance` - Mark attendance for members.\n\n### Member Endpoints\n- `/member/dashboard` - View the member dashboard.\n- `/member/schedule` - View the member's schedule.\n- `/member/profile` - View and update the member's profile.\n\n### Authentication Endpoints\n- `/auth/login` - User login page.\n- `/auth/register` - User registration page.\n\n## Screenshots\n- **Login**: Manage trainers, members, and view schedules.\n- - **Admin Dashboard**: View personal profile and schedule.\n- **Edit Members**: View member attendance and schedules.\n\n## Future Improvements\n- **Integration with Payment System**: Add functionality for membership payments.\n- **Enhanced Security**: Implement multi-factor authentication.\n- **Database Migration**: Move from H2 to a production-ready database like PostgreSQL.\n\n## Contributing\nContributions are welcome! Please fork the repository and open a pull request for any feature requests or bug fixes.\n\n## License\nThis project is licensed under the MIT License. Feel free to use it in your own projects.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickjamesrepo%2Fspringbootcrud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatrickjamesrepo%2Fspringbootcrud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickjamesrepo%2Fspringbootcrud/lists"}