OpenVeo Core server

API Docs for: 7.0.0
Show:

ApplicationServer

Summary

Defines an HTTP server for the openveo application, which serves front and back end pages.

Constructor

ApplicationServer

Syntax

ApplicationServer

(
  • configuration
)

Summary

Parameters:

  • configuration Object

    Service configuration

    • sessionSecret String

      Hash to encrypt sessions

    • httpPort Number

      HTTP server port

    • socketPort Number

      Socket server port

Methods

async

Inherited from Server but overwritten in app/server/servers/ApplicationServer.js:400

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 Function

    Function 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

Inherited from Server but overwritten in app/server/servers/ApplicationServer.js:207

Syntax

onDatabaseAvailable

(
  • db
  • callback
)
async

Summary

Prepares the express application.

Parameters:

  • db Database

    The application database

  • callback Function

    Function to call when its done with:

    • Error An error if something went wrong

onPluginLoaded

Inherited from Server but overwritten in app/server/servers/ApplicationServer.js:241

Syntax

onPluginLoaded

(
  • plugin
  • callback
)
async

Summary

Loads plugin.

Mounts plugin's assets directories, public router, private router, menu views folders and permissions.

Parameters:

  • plugin Object

    The openveo plugin

  • callback Function

    Function to call when its done with:

    • Error An error if something went wrong

startServer

Inherited from Server but overwritten in app/server/servers/ApplicationServer.js:441

Syntax

startServer

(
  • callback
)
async

Summary

Starts the HTTP and socket servers.

Parameters:

  • callback Function

    Function to call when it's done with :

    • Error An error if something went wrong, null otherwise

Properties

configuration

Syntax

configuration

Object final

Summary

Server configuration object.

httpServer

Syntax

httpServer

Application final

Summary

Express application.

imagesStyle

Syntax

imagesStyle

Object final

Summary

Image styles for image processing.

menu

Syntax

menu

Array

Summary

Back end menu description object.

migrations

Syntax

migrations

Object final

Summary

Migrations scripts to execute.

sessionMiddleware

Syntax

sessionMiddleware

Object

Summary

Express session middleware.

sessionStore

Syntax

sessionStore

Object

Summary

Database session storage.

socketServer

Syntax

socketServer

SocketServer final

Summary

Socket server.

viewsFolders

Syntax

viewsFolders

Array

Summary

List of path holding template engine views.