Skip to content

Node.js + ES2015 + CSV-parserjs + MySQL + BabelJS + InquirerJS + Stream-transform + Environmets

License

Notifications You must be signed in to change notification settings

camesine/csv-import

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

csv-import

What use this Starter App?

  • Mysql for connection with database.
  • csv-parse for manage data structured in text plain.
  • ES2015 with the last of javascript like promises and async/await
  • Environments Local or Production

Structure

/lib
	/database (Connection and queries to database)
    /env (Database credentials)
    index.js (main function for populate database )
/csv (File with data to insert)
index.js (Script to run app)

Edit the file ./lib/env/local or prod with your own settings:

	{
        host     : 'localhost',
        user     : 'root',
        password : '',
        database : 'test'
    }

Production

npm run prod

Local

npm run local

About

Node.js + ES2015 + CSV-parserjs + MySQL + BabelJS + InquirerJS + Stream-transform + Environmets

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published