Git Product home page Git Product logo

xlsx-load-node's Introduction

Description

This is a project NodeJS / ES6 based that loads a file in XLSX format and inserts his content into a MySQL database

See working on Heroku

How to use

Usage

XLSX file (called 'XLSX')

There are an example XLSX file in ./files/BD_SAMPLE.xlsx

Filename

Name of the XLSX file (case-incensitive)

Worksheet

Name of the XLSX worksheet where is data (case-incensitive)

Columns

Name of the columns that contain the data (case-incensitive) See data types

MySQL

There are an example MySQL script file in ./files/bd_sample.sql

Database

Should be equals that XLSX file name (case-incensitive)

Table

Should be equals that XLSX worksheet (case-incensitive)

Columns

Should exists and be equals that XLSX columns (case-incensitive)

MySQL user credentials

Adds your MySQL Server credentials in this file

constantes.js

exports.configuracionBD = {
  HOST: "your_mysql_host",
  BD_USER: "your_mysql_user",
  BD_NAME: "your_mysql_db_name",
  BD_PASSWORD: "your_mysql_pwd",
  BD_PORT: your_mysql_port
}

Data Type

XLSX

In XLSX file is enought with store your data with General format

MySQL

In MySQL you could stote your data in a varchar field for all your data

Dependences

The project is 100% free to use for non-commercial purposes, If you use this project please give the respective credits to the author

To-do

  • Catch XLSX library errors and display them in the view
  • Improvements in Ajax calls on client-side
  • Show load statistics to the database when file is succesfully loaded

Licence

Apache 2.0

xlsx-load-node's People

Contributors

alonsok28 avatar

Stargazers

 avatar

Watchers

 avatar

xlsx-load-node's Issues

Dependency

Hi, I am the author of the node module xlsx-node. I believe I might have done something to break the module while trying to update some node modules. Would you be able to take a look at it and let me know?

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.