A command line tool to help you get your node database tools up and running!
- KnexJS
npm install -g dbconfig
dbconfig knex [ type ] [ options ]
- scaffold: Will create knexfile.js, server.js, .gitignore, and package.json
Example usage:dbconfig knex scaffold --dbname=someDBName --create-dir=newapp
- simple: Will only create knexfile.js
ex: dbconfig knex simple
Example usage:dbconfig knex simple --dbname=someDBName
--dbname Replace "dbname" with the database you will be using, otherwise it will default to the database name "postgres"
Example usage: dbconfig knex scaffold --dbname=someDBName
--create-dir Will create directory and put all of the files inside of that directory. Defaults to "new-app".
Example usage: dbconfig knex scaffold --create-dir=someProjectName
- To put the necessary files into an existing project:
dbconfig knex simple --dbname=someDBName
- To create a new project with all necessary files to get started:
dbconfig knex scaffold --dbname=someDBName --create-dir=someProjectName
This project is open source and pull requests are welcome!
If you find a bug in the source code or a mistake in the documentation, you can help us by submitting an issue to our GitHub Repository. Even better, you can submit a Pull Request with a fix.
You can request a new feature by submitting an issue to our GitHub Repository. If you would like to implement a new feature, please submit an issue with a proposal for your work first, to be sure that we can use it.
MIT