ApplicationServer
Summary
Defines an HTTP server for the openveo application, which serves front and back end pages.
Constructor
Item Index
Methods
async
Syntax
async
(
-
callback
Summary
Finalizes the ApplicationServer initialization.
Mounts the assets directories of core and plugins, sets views folders, sets permissions and set default route and error handling. Default route must load the main view due to AngularJS single application.
Parameters:
-
callback
FunctionFunction to call when its done with:
- Error An error if something went wrong
initializePassport
Syntax
initializePassport
()
private
Summary
Initializes passport strategies to manage user authentication.
onDatabaseAvailable
Syntax
onDatabaseAvailable
(
async
-
db
-
callback
Summary
Prepares the express application.
Parameters:
-
db
DatabaseThe application database
-
callback
FunctionFunction to call when its done with:
- Error An error if something went wrong
onPluginLoaded
Syntax
onPluginLoaded
(
async
-
plugin
-
callback
Summary
Loads plugin.
Mounts plugin's assets directories, public router, private router, menu views folders and permissions.
startServer
Syntax
startServer
(
async
-
callback
Summary
Starts the HTTP and socket servers.
Parameters:
-
callback
FunctionFunction to call when it's done with :
- Error An error if something went wrong, null otherwise
Properties
httpServer
Syntax
httpServer
Application
final
Summary
Express application.socketServer
Syntax
socketServer
SocketServer
final
Summary
Socket server.