Skip to content

💻 Spring Batch Application to generate invoices based in clients, transactions and credit cards 💳 inside of a configured database with Docker 🐳.

Notifications You must be signed in to change notification settings

PedroLucasOM/InvoiceGenerator

Repository files navigation

Logo: InvoiceGenerator

Version documentation maintenance Twitter: PedroLucasOM

💻 Spring Batch Application to generate invoices based in clients, transactions and credit cards 💳 inside of a configured database with Docker 🐳.

Topics

  1. About SpringBatch
  2. About the Project
  3. Author
  4. Contributing
  5. Show your support
  6. License

1. About SpringBatch

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

2. About the Project

Implemented Job

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:

Prerequisites

  • docker

Run

With the docker started, execute this command at the project root:

docker-compose up -d --build

Usage

Seeing the valid records in the

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;"

Seeing the invalid records in the generated file

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.

Stop

To stop correctly:

docker-compose down -v

Remember to execute this command each time that you want change the parameter value.

3. Author

👤 Pedro Lucas

4. Contributing 🤝

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

5. Show your support

Give a ⭐ if this project helped you!

6. License 📝

Copyright © 2021 Pedro Lucas.

About

💻 Spring Batch Application to generate invoices based in clients, transactions and credit cards 💳 inside of a configured database with Docker 🐳.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published