1.0.2 • Published 8 years ago
generator-nyssa-be v1.0.2
Nyssa BE Generator
This project uses generator-feathers as base. With a few additions like jest, standard, prettier and nodemon.
NOTE: It also adds prettier as a precommit hook with lint-staged and husky.
Usage
First, install Yeoman and generator-nyssa-be using npm (we assume you have pre-installed node.js).
npm install -g yo generator-nyssa-beTemplates
Project
To generate a new project:
yo nyssa-beAuthentication
To generate authentication for the project:
yo nyssa-be:authConnection
To generate a connection for the project:
yo nyssa-be:connectionNOTE: This will create a setup file for testing, it will work only for mongodb. If another database is to be used there needs to be changes so a mock DB is initialized.
Hook
To generate a hook for the project:
yo nyssa-be:hookMiddleware
To generate middleware for the project:
yo nyssa-be:middlewareService
To generate a service for the project:
yo nyssa-be:service