Giter Site home page Giter Site logo

codacy-badger / pincodes-csvtodb-transformer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from isudarsan/pincodes-csvtodb-transformer

0.0 0.0 0.0 6.84 MB

Transforms Govt of India Pincodes from CSV to MySql Database

License: Apache License 2.0

Java 100.00%

pincodes-csvtodb-transformer's Introduction

pincodes-csvtodb-transformer

Spring Batch is one of the Spring frameworks that provides functions for processing large volumes of data in batch jobs. That includes logging, transaction management, job restart, job skip, statistics, and many others.

In this application, the requeirement is to strore pincodes related data from CSV file into MySQL database. Inorder to achive this I have used spring batch.

Deployment using Docker

As a first step, run MySQL in Docker container with the below command.

docker run --name mysql-pincodes-containar -e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=pincodes_db -e MYSQL_USER=zarvis -e MYSQL_PASSWORD=password -d mysql:5.6

Now that we have defined the Dockerfile, build a docker image for our application. Type the following command from the root directory of the project to build the docker image

docker build -t pincodes-csvtodb-transformer .

Once we have a docker image, run and link with MySQL database container which we already create below command.

docker run --name pincodes-csvtodb-transformer --link mysql-pincodes-containar -d pincodes-csvtodb-transformer

The docker image is available at : https://hub.docker.com/r/isudarsan/zarvis-apps/tags/

Image can be pulled directly from Docker Hub using docker pull isudarsan/zarvis-apps:pincodes-csvtodb-transformer-0.0.1-SNAPSHOT

@mentions (https://data.gov.in/) (https://docs.spring.io/spring-batch/trunk/reference/html/spring-batch-intro.html)

pincodes-csvtodb-transformer's People

Contributors

isudarsan avatar

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.