Constructor
new WebServer(pProject)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
pProject |
Project |
Namespaces
Methods
getApplication() → {Express.Application}
- Source:
To get Express Application instance used by web server
Returns:
Instance of Express Application
- Type
- Express.Application
initInstallRoutes()
- Source:
To init routes when Dexcalibur runs install mode
initRoutes()
- Source:
To initialize routes of the web server
initStaticRoutes()
- Source:
To init routes to static content
newDispatcher(pHome)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
pHome |
require('path') | The path of the file containing home page |
setContext(pEngine)
- Source:
To set Dexcalibur engine
Parameters:
Name | Type | Description |
---|---|---|
pEngine |
DexcaliburEngine |
setProject(pProject)
- Source:
To set the active project
Parameters:
Name | Type | Description |
---|---|---|
pProject |
Project |
showAccessLogs()
- Source:
start(port)
- Source:
To start the web server
Parameters:
Name | Type | Description |
---|---|---|
port |
Integer | Port number |
useInstallMode()
- Source:
To use routes of install mode
useProductionMode()
- Source:
To use routes of production mode