DillyDaily / bwood-pc-backend

Galvanize Q3 Project: back-end in Express/Node, Knex, PostgreSQL

Home Page:https://www.youtube.com/watch?v=SRJNtoOg90s

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DBConfig

A command line tool to help you get your node database tools up and running!

Currently works with:

  • KnexJS

Installation:

npm install -g dbconfig

Usage

dbconfig knex [ type ] [ options ]

Type:

  • 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

Options:

--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

Getting Started

  • 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

Contributions

This project is open source and pull requests are welcome!

Found an Issue?

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.

Want a Feature?

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.

License

MIT

About

Galvanize Q3 Project: back-end in Express/Node, Knex, PostgreSQL

https://www.youtube.com/watch?v=SRJNtoOg90s


Languages

Language:JavaScript 100.0%