Giter Site home page Giter Site logo

swapniltake1 / excel-to-db Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 76 KB

This Spring Boot project provides functionality to save Excel file data into both SQL and NoSQL databases.

Java 100.00%
data-jpa java mongodb mysql spring-boot excel-to-db

excel-to-db's Introduction

Spring Boot Excel to Database Project

This Spring Boot project provides functionality to save Excel file data into both SQL and NoSQL databases. It offers flexibility and scalability by supporting multiple database technologies.

Features

  • Parse Excel file data and convert it into Java objects.
  • Save data into SQL database (e.g., MySQL) using Spring Data JPA.
  • Save data into NoSQL database (e.g., MongoDB) using Spring Data MongoDB.
  • Error handling and transaction management for data integrity.

Technologies Used

  • Spring Boot
  • Apache POI for Excel parsing
  • Spring Data JPA for SQL database interaction
  • Spring Data MongoDB for NoSQL database interaction
  • MySQL (or other SQL database)
  • MongoDB (or other NoSQL database)

Setup Instructions

  1. Clone the repository:

    git clone https://github.com/swapniltake1/excel-to-db.git
  2. Navigate to the project directory:

    cd excel-to-db
  3. Configure database settings in application.properties:

    # SQL Database Configuration
    spring.datasource.url=jdbc:mysql://localhost:3306/your_database_name
    spring.datasource.username=your_username
    spring.datasource.password=your_password
    spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
    
    # NoSQL Database Configuration
    spring.data.mongodb.host=localhost
    spring.data.mongodb.port=27017
    spring.data.mongodb.database=your_database_name
  4. Run the application:

    ./mvnw spring-boot:run

Usage

  1. Upload an Excel file using the provided API endpoint.
  2. The application will parse the Excel data and save it into both SQL and NoSQL databases.
  3. Verify the data in both databases to ensure successful import.

Output and Screenshots

Screenshot 2024-03-20 205730 Screenshot 2024-03-20 205716 Screenshot 2024-03-20 205505 Screenshot 2024-03-20 205453 Screenshot 2024-03-20 205858

Contributing

Contributions are welcome! Please feel free to open an issue or submit a pull request for any improvements or bug fixes.

License

This project is licensed under the MIT License.

excel-to-db's People

Contributors

swapniltake1 avatar

Stargazers

Srijak avatar Siddhesh Pawar avatar

Watchers

 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.