This is a command line tool built for Knex.js for seeding massive amount of fake data into multiple databases
- Documentation
- How to install it?
- Basic configuration
- Run and see
- List of commands
- Database connections
- Be a contributor
- New versions of this tool
- License
- Further help
This tool integrates the inquirer.js library for making more interactive the commands built in commander.js. Also this tool incorporates faker.js for generating massive amounts of fake data.
Before run it you need to create an .env
file in your relative path. There are multiples ways to do that:
- Copying the code from here
- Renaming file
.env.example
to.env
inside this project. - Running the command
vollk env
Finally you need to fill this ENV
variables with theirs respective values.
[note]: If there is not .env
file in your relative path, then default values will be set:
MODE:
developmentDB_CLIENT:
mysqlDB_NAME:
vollkDB_HOST:
localhostDB_USER:
rootDB_PASS:
[none]
or...
MODE:
productionDB_CLIENT:
pgDB_URL:
[none]
or...
MODE:
localDB_CLIENT:
sqlite3SQLITE_PATH:
db.sqlite
-
list
(Lists all options) -
seed
(Seeds the database with yours especs) -
create
(Creates a seed file) -
run
(Runs the last seed file) -
env
(Creates an empty .env file)
--version
--help
To integrate this tool with other database connections you need to install the appropriate package: (by default only supports mysql
, pg
)
npm install
mysql2npm install
mariasqlnpm install
strong-oraclenpm install
oraclenpm install
mssqlnpm install
sqlite3
All the unit tests are written with Jasmine. Feel free to add more functionalities and bug fixes but also add a test for each of them. Just type npm test
, but before that you need to install globally Jasmine
npm install -g jasmine
Get update with all new versions here
Copyright (c) 2018 Rene Ricardo. Licensed under the MIT license.
Send me an email or a tweet if you have some doubt or just add an issue