The Space Reservation System is an application designed to manage the reservation of spaces such as meeting rooms, auditoriums, or any other reservable area. The application allows users to register, log in, and manage their reservations. Administrators can manage available spaces, assign roles to users, and keep the information up to date.
- User Management: User registration, login, and profile management.
- Space Management: Viewing spaces, registering, updating, and deleting spaces.
- Reservation Management: Creating and viewing reservations.
Before you begin, make sure you have the following installed:
- Docker
- Docker Compose
- Git
Start by cloning the repository to your local machine:
git clone https://github.com/your-username/space-reservation-system.git
cd space-reservation-systemTo build and run the application using Docker, follow these steps:
# Pull the Docker image
docker pull atuhome/appbooking:0.1.2
# Start the containers
docker-compose upThis will start all the necessary containers, including the application and the MySQL database.
Once the containers are up and running, you can access the application in your browser at:
Aquí tienes los nombres de las API junto con sus URL y paths:
-
User Registration
- URL:
http://localhost:8081 - Path:
/api/users/register
- URL:
-
User Login
- URL:
http://localhost:8081 - Path:
/api/users/login
- URL:
-
Register Type of Space
- URL:
http://localhost:8081 - Path:
/api/typespaces/register
- URL:
-
Register Space
- URL:
http://localhost:8081 - Path:
/api/spaces/register
- URL:
-
Massive Register Space
- URL:
http://localhost:8081 - Path:
/api/spaces/massive-register
- URL:
-
Filter Space
- URL:
http://localhost:8081 - Path:
/api/spaces/filter
- URL:
-
Create Reservation
- URL:
http://localhost:8081 - Path:
/api/reservations
- URL:
-
Get Available Space
- URL:
http://localhost:8081 - Path:
/api/reservations/floor-date
- URL:
-
Get All Spaces
- URL:
http://localhost:8081 - Path:
/api/spaces
- URL:
-
Get All Small Spaces
- URL:
http://localhost:8081 - Path:
/api/spaces/small-spaces
- URL:
-
Get Spaces by Floor
- URL:
http://localhost:8081 - Path:
/api/spaces/floor/{floor}
- URL:
-
Check Space Availability
- URL:
http://localhost:8081 - Path:
/api/spaces/available/{id}
- URL:
-
Get Reservation by ID
- URL:
http://localhost:8081 - Path:
/api/reservations/{id}
- URL:
-
Get Reservations by User
- URL:
http://localhost:8081 - Path:
/api/reservations/user/
- URL:
-
Get Reservations by Space
- URL:
http://localhost:8081 - Path:
/api/reservations/space/{spaceId}
- URL:
To run the tests for the application, you can use the following command:
docker-compose exec app mvn testTo stop the application and remove the containers, use the following command:
docker-compose down- /src: Contains the source code of the application.
- /docker-compose.yml: Docker Compose file for building and running the application.
- /README.md: Project documentation.