Giter VIP home page Giter VIP logo

json2db's Introduction

What is expected to be done via this project

Project is expected to read json files from FTP Server and load into the database via Rest controller end point.

How to run the project in your machine

Prerequisite

  1. Gradle Installed in local (I know wrapper will be good)
  2. Acceptance to run the project with default local profile

ISSUE in Execution

  1. Unable to run gradle build
  2. default jsonPath in DBLoadController.java needs to be fixed[work around run localtest]

Project Execution Steps

  1. Get the source code in your local machine
  2. Navigate to the location of the build.gradle file
  3. Run in local profile (H2 Database): gradle bootRun --args='--spring.profiles.active=local'
  4. 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

Project Navigation (Make sure port 8090 is not used)

  1. Swagger UI --> localhost:8090/swagger-ui.html
  2. H2 Database --> localhost:8090/json2db

How to run the project with required profile (with Gradle)

SPRING_PROFILES_ACTIVE=local gradle clean bootRun

Project Development Tasks

  1. Create a Spring-Boot project --> Done
  2. Create the Domain object --> Done
  3. Read the a file from test/resources/jsonPath/test.json as Json String --> Done
  4. Map the Json string to Domain Object and Save the Domain Object to Database --> Done
  5. Add controller to read static files and load into DB --> Done
  6. Add Swagger to project

json2db's People

Contributors

htanivar avatar

Watchers

James Cloos avatar  avatar

json2db's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.