Skip to content

Instantly share code, notes, and snippets.

@bbrochier
Last active October 14, 2017 12:13
Show Gist options
  • Save bbrochier/10baa455e29dbef89575 to your computer and use it in GitHub Desktop.
Save bbrochier/10baa455e29dbef89575 to your computer and use it in GitHub Desktop.
MEAN.js Commands

####Init framework https://gist.github.com/bbrochier/38f593acbc3a3af1c9cd

###Express (Back end)

####1. Semi automatic method

#####1.1 Add a Model

yo meanjs:express-model category

#####1.2 Add Properties a Model Edit app/models/category.server.model.js

#####1.3 Add a Controller

yo meanjs:express-controller categories

#####1.4 Add a Route

yo meanjs:express-route categories

####2. OR Automatic method

yo meanjs:crud-module categories

--

###Angular (Front end)

#####1. Generate module

yo meanjs:angular-module categories

#####2. Config module

yo meanjs:angular-config categories

#####3. Add route to module

yo meanjs:angular-route categories

#####4. Add "POST view" to module

yo meanjs:angular-view create-category

#####5. Add service to module

yo meanjs:angular-service categories
@deepakparamesh
Copy link

Hi Brother,
I am getting a question like "Which module does this controller belongs to?" this in the CLI after I type any of these commad. Is there any solution for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment