Skip to content

Instantly share code, notes, and snippets.

@shotaK
Created August 2, 2015 08:20
Show Gist options
  • Save shotaK/2b4faca782a673f14ab7 to your computer and use it in GitHub Desktop.
Save shotaK/2b4faca782a673f14ab7 to your computer and use it in GitHub Desktop.
Yeoman
// --------------------------- create a model ---------------------------
yo meanjs:express-model <model-name>
// e.g
yo meanjs:express-model category
// --------------------------- create a controller ---------------------------
yo meanjs:express-controller <controller-name>
// e.g
yo meanjs:express-controller categories
// --------------------------- create a route ---------------------------
yo meanjs:express-route <route-name>
// e.g
yo meanjs:express-route categories
// --------------------------- create a crud module ---------------------------
yo meanjs:crud-module <crud-module-name>
// e.g
yo meanjs:crud-module products
// --------------------------- Install meanjs ---------------------------
yo meanjs
// --------------------------- install node modules ---------------------------
npm install
// --------------------------- run mongo database ---------------------------
mongod
// --------------------------- LAST STEP: start a server for the project ---------------------------
npm start
// --------------------------- Optional: tun tests of a project ---------------------------
npm test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment