DefaultController

new DefaultController(model: any, functions: any)
Parameters
model (any)
functions (any = [])

loader

object of utils function.

loader
Version: 0.2.0
Author: Kamontat Chantrachirathumrong
Parameters
by_model (Function) load function by input model object
by_name (Function) load function by input name of the model object
Static Members
by_model(model)
by_name

Models

database model

Models

Type: Object

Static Members
BannerModel
ConceptModel
EventModel
LocationModel
PartnerModel
SpeakerModel
VolunteerModel

DefaultModel

create mongo schema and model, More mongoosejs

new DefaultModel(database_name: string, database_columns: Object, database_options: Object)
Version: 0.2.0-beta.3
Author: Kamontat Chantrachirathumrong
Parameters
database_name (string) database name
database_columns (Object) column inside database
database_options (Object) option of Schema creator
Instance Members
mongoose
DEFAULT_LIMIT
name
name
low_name
create(parameters)
list(next, option)
retrieve(id)
update(id, body)
delete(id)
delete_by_condition(condition)
count(condition)
random(filter, fields, options)
clear_db()

ServerSetting

config file for setting express application

ServerSetting
Version: 0.3.0
Author: Kamontat Chantrachirathumrong
Parameters
expressApp (Object) express app
Logger (Object) logger for log