Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/giabb/spring-framework-basics

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.
https://github.com/giabb/spring-framework-basics

java jpa maven spring-batch spring-boot spring-framework

Last synced: 27 days ago
JSON representation

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.

Awesome Lists containing this project

README

        

# Spring Framework Basics

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.

## Table of Contents

- [Summary](#summary)
- [Prerequisites](#prerequisites)
- [Getting Started](#getting-started)
- [Authors](#authors)
- [License](#license)
- [Acknowledgments](#acknowledgments)

## Summary
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.

## Prerequisites

- Java 21
- Maven 3.9+

## Getting Started

To get started, follow these steps:

### Using IntelliJ IDEA

1. Clone the repository.
2. Open the project in IntelliJ IDEA.
3. 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.

### Using Command Line

Alternatively, you can use Maven to compile the JAR files and run them from the command line:

```shell
# 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
```

## Authors

- **Giovanbattista Abbate** - [giabb](https://github.com/giabb)

## License

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details

## Acknowledgments

- **Billie Thompson** - *Provided README Template* - [PurpleBooth](https://github.com/PurpleBooth)