Project is expected to read json files from FTP Server and load into the database via Rest controller end point.
- Gradle Installed in local (I know wrapper will be good)
- Acceptance to run the project with default local profile
- Unable to run gradle build
- default jsonPath in DBLoadController.java needs to be fixed[work around run localtest]
- Get the source code in your local machine
- Navigate to the location of the build.gradle file
- Run in local profile (H2 Database): gradle bootRun --args='--spring.profiles.active=local'
- Run in dev profile (mariaDB): gradle bootRun --args='--spring.profiles.active=dev,--spring.datasource.password=' (you need to configure your mariaDb password in application-dev.properties file) a. Unable to execute just with command line...need to update the application-dev.properties file in the execution machine
- Swagger UI --> localhost:8090/swagger-ui.html
- H2 Database --> localhost:8090/json2db
SPRING_PROFILES_ACTIVE=local gradle clean bootRun
- Create a Spring-Boot project --> Done
- Create the Domain object --> Done
- Read the a file from test/resources/jsonPath/test.json as Json String --> Done
- Map the Json string to Domain Object and Save the Domain Object to Database --> Done
- Add controller to read static files and load into DB --> Done
- Add Swagger to project