# will-core

Core Module

## Installation

    npm install will-core

### Configuration

This module require configuration ([config](https://www.npmjs.com/package/config)) setting by config/default.json under project and [will-util](https://www.npmjs.com/package/will-util), [will-sql](https://www.npmjs.com/package/will-sql), [will-lib](https://www.npmjs.com/package/will-lib), [will-dh](https://www.npmjs.com/package/will-dh), [will-db](https://www.npmjs.com/package/will-db), [will-api](https://www.npmjs.com/package/will-api)

    npm install config

config/default.json

```json
{
    "MYSQL" : { "alias": "mysql", "dialect": "mysql", "url": "mysql://user:password@localhost:3306/testdb?charset=utf8&connectionLimit=10", "user": "user", "password": "password" },
    "ODBC" : { "alias": "odbc", "dialect": "mysql", "url": "DRIVER={MySQL ODBC 5.3 Unicode Driver};SERVER=localhost;DATABASE=testdb;HOST=localhost;PORT=3306;UID=user;PWD=password;", "user": "user", "password": "password" },
    "MSSQL": { "alias": "mssql", "dialect": "mssql", "url": "Server=localhost,1433;Database=testdb;User Id=user;Password=password;Encrypt=false;Trusted_Connection=Yes;", "user": "user", "password": "password" },
    "ORACLE": { "alias": "oracle", "dialect": "oracle", "url": "localhost:1521/ORCLCDB.localdomain", "user": "user", "password": "password" },
    "POSTGRES": { "alias": "postgres", "dialect": "postgres", "url": "postgresql://user:password@localhost:5432/testdb", "user": "user", "password": "password" },
    "INFORMIX": { "alias": "odbc", "dialect": "informix", "url": "DRIVER={IBM INFORMIX ODBC DRIVER (64-bit)};SERVER=online_localhost;DATABASE=refdb;HOST=localhost;SERVICE=9088;UID=user;PWD=password;CLIENT_LOCALE=th_th.thai620;DB_LOCALE=th_th.thai620;", "user": "user", "password":"password" }
}
```

    npm install will-util
    npm install will-sql
    npm install will-lib
    npm install will-dh
    npm install will-db
    npm install will-api

### AssureHandler
AssureHandler is the static handler for authorize and authenticate

### AttachHandler
AttachHandler is the handler of attach file when uploaded

### AuthenticateHandler
AuthenticateHandler is the handler of user authentication

### AuthroizeHandler
AuthroizeHandler is the handler of user authrorization

### BaseHandler
BaseHandler is the handler of base class

### CaptchaHandler
CaptchaHandler is the handler of image captcha

### ChangePasswordHandler
ChangePasswordHandler is the handler of user change password

### ChangePasswordHandler
DataTableHandler is the handler of data service categories or lists

### DiffieHandler
DiffieHandler is the handler of diffie-helman provider

### ForgotPasswordHandler
ForgotPasswordHandler is the handler of user forgot password

### LoginHandler
LoginHandler is the handler of user login callback

### LoginHandler
LabelHandler is the handler of field labeling

### SchemeHandler
SchemeHandler is the base handler of all classes

### SigninHandler
SigninHandler is the handler of user sign in

### SystemHandler
SystemHandler is the handler of system class

### TrackingHandler
TrackingHandler is the handler of system tracking
