A proof of concept stack for development using Yeoman 0.9.6, Express and AngularJS
- Custom version of Yeoman's server.js with support for Express middleware
- LiveReload supported out of the box
- Generator for Express and CRUD generator for AngularJS
- Proof-of-concept application using AngularJS
This stack assumes that you wish to develop both the server and client portions of your application within the same directory. By the end of setup, you will be able to see how to do this using the demo application which has a
server directory for Express code and an
app directory for your client-side code.
yeoman-custom- A custom build of Yeoman 0.9.6 with support for Express middleware
generators- Express and AngularJS Crud generators for scaffolding
demo- A sample application
- Find out where your local yeoman lives using
- Under the tasks directory of your yeoman install, replace
yeoman-custom/cli/tasks/server.jsfrom this repo.
npm installon your updated yeoman, to resolve the Express.js dependency and any other dependencies if you haven't installed yeoman before
- If you wish to install the
angularcrudgenerators, copy them into your yeoman install's
node_modules/yeoman-generators/lib/generators. Yeoman should be able to pick them up automatically when you try calling them
You should now be able to navigate to
demo and run
yeoman server to run it. Note, if you have multiple versions of yeoman installed locally, you may wish to directly use the binary in
yeoman-custom, otherwise everything should work.
For the generators, the following are supported:
Angularcrud: angularcrud:all angularcrud:app angularcrud:common angularcrud:controller angularcrud:crud angularcrud:crud-controller angularcrud:crud-route angularcrud:crud-view angularcrud:directive angularcrud:filter angularcrud:route angularcrud:service angularcrud:view Express: express:all express:crud
For more information about individual sub-generators, please see the USAGE guidelines.
@addyosmani, @blai, @jacobmumm, @mklabs