generator-nyssa-be

Back End yeoman generator for nyssa

Usage no npm install needed!

<script type="module">
  import generatorNyssaBe from 'https://cdn.skypack.dev/generator-nyssa-be';
</script>

README

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

Templates

Project

To generate a new project:

yo nyssa-be

Authentication

To generate authentication for the project:

yo nyssa-be:auth

Connection

To generate a connection for the project:

yo nyssa-be:connection

NOTE: 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:hook

Middleware

To generate middleware for the project:

yo nyssa-be:middleware

Service

To generate a service for the project:

yo nyssa-be:service