I am working on a simple app that will allow a user to upload a .csv file through a reactjs client and store it in a mysql database. I found a few tutorials on how to do something similar online (https://spring.io/guides/gs/batch-processing/) but they all use .csv files that are locally saved in the project directories. I have experience designing a RESTful interface using Spring Boot and it looks like Spring Batch is easy enough to figure out but what I don't know how to do is:
- Call a Spring Batch application from my existing Spring Boot application
- Pass along a .csv file from the client's drive to the Spring Batch app
Do I have to upload the .csv file from the client's drive to the server that the Spring Batch(or Spring Boot) app is being run on? If so, is there a hosting service that would allow me to host a single .csv file AND my Spring applications?