generator-crud

0.6.3 • Public • Published

generator-crud NPM version Dependency Status

generates crud modules of mean stack or elasticsearch instead of mongodb

Installation

First, install Yeoman and generator-crud using npm (we assume you have pre-installed node.js).

npm install -g yo
npm install -g generator-crud

Then generate your new project:

yo crud

then generate mean stack module:

yo crud:module module-name

if you want elasticsearch instead of mongodb:

yo crud:module module-name --elastic

e.g.

yo crud:module user
yo crud:module person --elastic
yo crud:module module-name

actually runs two commands:

yo crud:back_module module-name
yo crud:front_module module-name

if you want to generate only backend module:

yo crud:back_module module-name

e.g.

yo crud:back_module organization

it will create organizations.js route file in routes directory, organizationsManager.js in application directory and organization.js mongoose model file in models directory. and will register router in app.js .

you can generate elasticsearch based module:

yo crud:back_module organization --elastic

if you want to generate only front module:

yo crud:front_module module-name

creates angular application with controller and factory, adds dependency to main application, adds script to index.html, creates view.

Getting To Know Yeoman

  • Yeoman has a heart of gold.
  • Yeoman is a person with feelings and opinions, but is very easy to work with.
  • Yeoman can be too opinionated at times but is easily convinced not to be.
  • Feel free to learn more about Yeoman.

License

MIT © Irakli Jishkariani

Readme

Keywords

Package Sidebar

Install

npm i generator-crud

Weekly Downloads

1

Version

0.6.3

License

MIT

Last publish

Collaborators

  • irakli2692