Skookum/base12-server — Issue #6: Needs other generator scripts
Author: snodgrass23
Created: 2012-03-08 18:10:15+00:00
State: open

eg:

```
npm run-script generate twitter-bootstrap
npm run-script generate html5bp
```

and more complex stuff like:

```
npm run-script generate auth-passport
```

-> creates /app/middleware/authentication.js (providing user middlewhere like .must_be_user())
-> creates /app/lib/authentication.js (configuration for auth mechanisms)
-> outputs:

```
you should add

var authentication = require('./lib/authentication')

to app/index.js and then add authentication to your app's 'init' array.
Then, you should use the methods in middleware/authentication wherever you would like to authenticate your controller actions. For example:

app.post('/messages', app.middleware.authentication.must_be_user, app.controllers.message.create);
```