Package Exports
- admin-lte-express
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (admin-lte-express) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
admin-lte-express
AdminLTE 2.3.2 with express and express-handlebars.
git clone https://github.com/RamEduard/admin-lte-express.git
Install
npm install admin-lte-express --save
Config on Express App
app.use('/admin', express.static('./node_modules/admin-lte-express/public'))
app.use('/', require('admin-lte-express'));
Generator
./bin/generate Valid options [controller|route|view]
controller
--name Name of controller. Ex.: user
route
--ctrlFile Path of controller JS file.
--name Route name.
--view View to render.
view
--filename Path for view file.
Helpers
- url(routeName, params) returns Path for the routeName
- activeRoute(routeName) returns ['active'||'']
- activeRoutes(routeNames) returns ['active'||'']
- block(name)
- extend(blockName, context)
Authorization
- Passport.js
- Uncomment Lines 59 and 60 for use this auth.
- Custom Auth express.js (Default)
- Uncomment Lines 55 and 56 for use this auth.
TODO
- Register user for login
- Authorization with Facebook and Google with Passport.js
- CRUD example