1.0.6 • Published 8 years ago
hyperportal v1.0.6
Hyperportal
A pleasant CLI for rapid development with Sequelize or Mongoose.

Quickstart
$ yarn add --dev hyperportalAnd add the following script to your package.json file. Let's call it 'console'.
"scripts":{
"console":"HYP_MODELS=config/hyperportal.js hyp"
}And here's how config/hyperportal.js looks like, when you're using Mongoose:
// connects mongoose. grab your own setup
require('./mongoose-setup.js')
// exports a map, e.g. { User: <mongoose model>, Post: <mongoose model> }
const models = require(path.join(__dirname, '../models'))
module.exports = modelsAnd now, run:
$ yarn consoleUsage
Use your models (they are already available in the console) to print p, log l, and display on a table t.
Additionally you can simulate a toJSON with js to see what part of your model is exposed.
>> t(User.find())
>> p(User.find())
>> l(User.find())
>> js(User.find())Contributing
Fork, implement, add tests, pull request, get my everlasting thanks and a respectable place here :).
Thanks:
To all Contributors - you make this happen, thanks!
Copyright
Copyright (c) 2017 Dotan Nahum @jondot. See LICENSE for further details.