This API is designed to manage rentals with functionalities for CRUD operations utilizing Java, Spring Boot and MySQL.
It is designed to provide datas to an Angular web application which is available on this github repo
- Java 17+
- Maven
- MySQL for database setup
-
Clone the repository.
-
setup your secret key in env variable
${RENTAL_SECRET_KEY}
-
Install dependencies with Maven:
mvn install
-
Create an empty database in MySQL, and grant a user the necessary rights to access and use that database.
-
Configure the following env variables:
${RENTAL_DB_NAME}
: the name of the configured database${RENTAL_DB_USERNAME}
: the username of the created database user${RENTAL_DB_PASSWORD}
: the password of the created database user
- Initialize the database using Spring JPA by running the local server:
mvn spring-boot:run
Access Swagger after starting the server at localhost:9000/api/swagger-ui.html