https://github.com/camesine/csv-import
Node.js + ES2015 + CSV-parserjs + MySQL + BabelJS + InquirerJS + Stream-transform + Environmets
https://github.com/camesine/csv-import
babel csv-parser environment-variables es2015 mysql-database
Last synced: 2 months ago
JSON representation
Node.js + ES2015 + CSV-parserjs + MySQL + BabelJS + InquirerJS + Stream-transform + Environmets
- Host: GitHub
- URL: https://github.com/camesine/csv-import
- Owner: camesine
- License: mit
- Created: 2017-07-16T01:01:36.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-16T01:02:38.000Z (almost 9 years ago)
- Last Synced: 2025-05-14T14:48:03.127Z (about 1 year ago)
- Topics: babel, csv-parser, environment-variables, es2015, mysql-database
- Language: JavaScript
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```json
/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:
```json
{
host : 'localhost',
user : 'root',
password : '',
database : 'test'
}
```
## Production
npm run prod
## Local
npm run local