apeman-proto-session
Prototype for project with session.
Installation
$ npm install apeman-proto-session --save
Usage
/** This is an example Apemanfile.js */
'use strict'
module.exports = {
$ctx: {
/** Database model for session */
sessionModel: require('./db/models/session_model'),
/** Secret for session */
sessionSecret: "a3sdp0f9u"
},
$pkg: { /* ... */ },
$proto: [
// Inherit apeman-proto-session project.
require('apeman-proto-session')
],
$tmpls: { /* ... */ },
$tasks: { /* ... */ }
}
Apemanfile Configurations
$pkg
Name |
Value |
name |
apeman-proto-session |
version |
3.0.3 |
description |
Prototype for project with session. |
$proto
$apps
Name |
Description |
session:enable |
Enable session feature. |
session:flush |
Add flush message support with session |
$needs
Bin |
How to install |
apeman |
npm install -g apeman |
License
This software is released under the MIT License.
Links