krypt-master
v1.0.10
Published
One Krypt To Rule Them All
Downloads
34
Maintainers
Readme
Krypt Master
Krypt Master is a node package that is Express CLI in Sails.js style. This package is inspired from Sails.js and Angular CLI
Github Get Started Docs News Submit Issue
Express CLI (Sails.js Structure)
A Sails.js like file structure using Express.js which provides the following services:
- install with simple auth or oauth2 (in progress)
- generate controllers, models, services with single command (in progress)
- generate logs(in progress)
- one click dummy db import(in progress)
Currently the project is still work in progress. Pull requests are definitely welcome. The project currently does not support view part(in progress) and is only for apis only. Other features will be added soon
Installation
$ npm install -g krypt-master
Run the app:
$ krypt init
generate(controller, model, service):
$ krypt generate controller users
> created api/controllers/UsersController.js
> updated config/routes.js
Install dependencies:
$ cd project && npm install
Start your Express.js app at http://localhost:1337/
:
$ npm start
Once run, it will generate the following file structure:
.
├── api
│ └── contollers
│ └── models
│ └── policies
│ └── services
├── assets
├── bin
├── config
│ ├── config.js
│ └── connections.js
│ └── logs.js
│ └── mongoose.js
│ └── routes.js
├── logs
│ └── logs.log
├── .gitignore
├── app.js
├── README.md
└── package.json
Bundled services
| Service Name | Implemented providers | |:---------------------------------------------------------------------:|:------------------------------------------------:| | CipherService | OAuth2.0/Simple Auth(passport) | | HashService | bcryptjs | | ImageService | GraphicsMagick, ImageMagick(Soon to implemented) | | Logs | Winston | | MailerService | Nodemailer | | PaymentService | BrainTreePayments, Stripe(Soon to implemented) | | SmsService | Twilio(Soon to implemented) | | SocialService | Facebook(Soon to implemented) |