Functions to initialize and start the server.
Methods
-
<static> buildApp(development)
-
Build the Express application with all middleware.
Parameters:
Name Type Description development
Boolean Development mode? Returns:
Express application- Type
- Object
-
<static> startServer(testMode)
-
Start the server. This creates the Express app object, and initializes the mongoose database connection.
Parameters:
Name Type Description testMode
Boolean