The backend of the Djava Luxury App project is responsible for handling all server-side operations, including user authentication, room booking management, and API endpoints. This section provides an overview of the backend architecture, technologies used, and setup instructions.
- Spring Boot 3: A powerful framework for building Java-based applications.
- Spring Security 6: Provides authentication and authorization mechanisms for securing the application.
- JWT Token Authentication: Ensures secure communication between the client and server.
- Spring Data JPA: Simplifies data access and persistence using the Java Persistence API.
- JSR-303 and Spring Validation: Enables validation of objects based on annotations.
- Midtrans: A third-party payment gateway used to process transactions securely and efficiently.
- OpenAPI and Swagger UI Documentation: Generates documentation for the API endpoints.
- Docker: Facilitates containerization of the backend application for deployment.
To set up the backend of the Book Social Network project, follow these steps:
- Clone the repository:
git clone - Run the docker-compose file
docker-compose up -d- Navigate to the DjavaLuxury directory:
cd DjavaLuxury- Install dependencies (assuming Maven is installed):
mvn clean install- Run the application but first replace the
x.x.xwith the current version from thepom.xmlfile
java -jar target/djava-luxury-app-x.x.x.jar- Access the API documentation using Swagger UI:
Open a web browser and go to `http://localhost:8088/swagger-ui/index.html.
This project is licensed under the Apache License 2.0. See the LICENSE file for details.