1.0.10 • Published 7 years ago

krypt-master v1.0.10

Weekly downloads
1
License
ISC
Repository
github
Last release
7 years ago

Krypt Master

NPM version Build Status npm GitHub stars

Krypt Master is a node package that is Express CLI in Sails.js style. This package is inspired from Sails.js and Angular CLI

NPM

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 NameImplemented providers
CipherServiceOAuth2.0/Simple Auth(passport)
HashServicebcryptjs
ImageServiceGraphicsMagick, ImageMagick(Soon to implemented)
LogsWinston
MailerServiceNodemailer
PaymentServiceBrainTreePayments, Stripe(Soon to implemented)
SmsServiceTwilio(Soon to implemented)
SocialServiceFacebook(Soon to implemented)