This project showcases the fundamental workings of the Spring Framework in Java. It was developed as part of a code challenge to demonstrate an understanding of Spring Framework and to illustrate key programming paradigms.
This project showcases the integration of Spring Batch and Spring Boot to process and serve data. It is organized into two subprojects:
- Batch: a Spring Batch application.
- MS: a Spring Boot microservice.
Follow the instructions below to set up and run the applications.
- Java 21
- Maven 3.9+
To get started, follow these steps:
- Clone the repository.
- Open the project in IntelliJ IDEA.
- Press 'Run' on the respective main class of each subproject:
- Run Batch first to initiate the batch processing.
- Once Batch has completed, a folder named
DB
will be created at the project root. This folder will contain an H2 database file from which the microservice will retrieve data. - Run MS to start the microservice.
Alternatively, you can use Maven to compile the JAR files and run them from the command line:
# Run Batch
cd Batch
mvn clean install
java -jar target/batch-1.0-SNAPSHOT.jar
# Start MS after running batch
cd ../MS
mvn clean install
java -jar target/ms-1.0-SNAPSHOT.jar
- Giovanbattista Abbate - giabb
This project is licensed under the MIT License - see the LICENSE.md file for details
- Billie Thompson - Provided README Template - PurpleBooth