https://github.com/nailwal08/gamingcafebackend
A Spring MVC-based project to manage user sessions and personal computers (PCs) in a gaming cafe. This system allows the registration of PCs, session management (start and end sessions), and retrieval of available PCs.
https://github.com/nailwal08/gamingcafebackend
backend-service java mvc-architecture rest-api spring-boot
Last synced: 2 months ago
JSON representation
A Spring MVC-based project to manage user sessions and personal computers (PCs) in a gaming cafe. This system allows the registration of PCs, session management (start and end sessions), and retrieval of available PCs.
- Host: GitHub
- URL: https://github.com/nailwal08/gamingcafebackend
- Owner: nailwal08
- License: mit
- Created: 2024-11-29T17:15:50.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-29T17:33:22.000Z (over 1 year ago)
- Last Synced: 2025-04-06T00:23:08.686Z (about 1 year ago)
- Topics: backend-service, java, mvc-architecture, rest-api, spring-boot
- Language: Java
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GamingCafeBackend
A **Spring MVC-based project** to manage user sessions and personal computers (PCs) in a gaming cafe. This system allows the registration of PCs, session management (start and end sessions), and retrieval of available PCs with real-time charges generation.
---
## Features
### 1. **Personal Computer Management**
- Register new PCs.
- Retrieve a list of available PCs.
### 2. **Session Management**
- Start a new user session.
- End a session and calculate charges based on session duration.
- Store session details, such as user name, start time, end time, duration, and charges.
---
## Technologies Used
- **Spring MVC**: For REST API and application logic.
- **JPA (Java Persistence API)**: For database interaction.
- **MySQL**: Database to store PC and session details.
- **Lombok**: To reduce boilerplate code.
- **Jakarta Validation API**: For request validation.
---
## Setup and Installation
### Prerequisites
- Java Development Kit (JDK) 17 or later
- Apache Maven
- MySQL server
- An IDE (e.g., IntelliJ IDEA, Eclipse)
## Project Structure
gaming-cafe/
├── src/
│ ├── main/
│ │ ├── java/com/example/gamingCafe/
│ │ │ ├── controller/ # REST controllers
│ │ │ ├── entities/ # JPA entities
│ │ │ ├── repository/ # JPA repositories
│ │ │ ├── service/ # Service interfaces
│ │ │ ├── serviceImpl/ # Service implementations
│ │ │ └── GamingCafeApplication.java # Main entry point
│ │ └── resources/
│ │ ├── application.properties # Configuration
│ │ └── data.sql # Initial database seed (optional)
│ └── test/
│ └── java/com/example/gamingCafe/ # Unit and integration tests
└── pom.xml # Maven configuration
## License
This project is licensed under the MIT License.
## Contact
mail : nailwalnikhil17@gmail.com