Home Manual Reference Source Test Repository
public class | source

Setup

Class for setting up the API.

Static Method Summary

Static Public Methods
public static

Connection and configuration of the MongoDB database.

Constructor Summary

Public Constructor
public

constructor(app: Express, pretty: Boolean, verbose: Boolean)

Setup the Express service.

Static Public Methods

public static connectMongoDB() source

Connection and configuration of the MongoDB database.

Public Constructors

public constructor(app: Express, pretty: Boolean, verbose: Boolean) source

Setup the Express service.

Params:

NameTypeAttributeDescription
app Express

The ExpresssJS instance.

pretty Boolean
  • optional
  • nullable: true

Pretty output with Winston logging.

verbose Boolean
  • optional
  • nullable: true

Debug mode for no output.