Skip to content

Needs other generator scripts #6

@snodgrass23

Description

@snodgrass23

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions