###This example is derived from
config/dbschema.js - mongoose database schema config/pass.js - contains most of the passport configuration, also contains an additional admin middleware function
routes/basic.js - basic routes paths routes/user.js - user paths (login, account, etc)
app.js - main server code
You can now run npm install without fear and you won't run into ejs errors when rendering layouts. The layout was changed to a header and a footer.
You can check roles or for admin by modifying the ensureAdmin method in config/pass.js to ensureRole('admin'). Simply add it as an additional middleware as shown in the '/admin' path in app.js
npm install -g grunt-cli
You will then be able to run
grunt --version
grunt --help
You can seed and drop the database with a grunt task by running the following commands from the root directory of the node app in terminal.
grunt dbseed
grunt dbdrop