💻 Spring Batch Application to generate invoices based in clients, transactions and credit cards 💳 inside of a configured database with Docker 🐳.
It is a framework that uses the Java Virtual Machine and the Spring Ecosystem to build batch applications. By definition, batch systems are systems that realize a process of a finite amount of data without interaction or interruption.
To learn more about this framework, view this article on the Notion: SpringBatch Article
It's responsible to execute two steps that will import credit cards and transactions from a .txt file to a configured Datasource. After it, it will gerenate multiples files to each credit card invoice with their respective transactions.
This is the file that will be imported:
- docker
With the docker started, execute this command at the project root:
docker-compose up -d --build
Credit Card records:
docker-compose exec database_app mysql -u root -papp#1234 -e "select * from app_batch.credit_card;"
Transaction records:
docker-compose exec database_app mysql -u root -papp#1234 -e "select * from app_batch.transaction;"
Navigate to /files/output/ inside of project root and open the files that contains "invoice" in their names. You will see the invoices layout and their transactions.
To stop correctly:
docker-compose down -v
Remember to execute this command each time that you want change the parameter value.
👤 Pedro Lucas
- Twitter: @PedroLucasOM
- Github: @PedroLucasOM
- LinkedIn: @PedroLucasOM
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Give a ⭐ if this project helped you!
Copyright © 2021 Pedro Lucas.