Startup
Last updated
Was this helpful?
Last updated
Was this helpful?
Kind: String
Example: name: "test"
Description: This will be used just for logging purposes
Kind: Integer (0-65536)
Example: port: 8080
Description: What port to run the web server on
Kind: Boolean
Example: log: true
Description: Whether or not to log requests to the console
Logging will show path of request, speed and status code sent
Kind: String
Example: mongo: "mongodb://localhost:27017/"
Description: Mongo server to connect to your database
We use enmap and enmap-mongo for connecting and using your mongo database both of which work but are no longer supported.
Kind: Array
Example: routes: [{ url:'/', router: require('./api.js') }]
Description: For assigning routes to your application.
Kind: String
Example: viewsDir: "./test/views"
Description: The views directory
Kind: String
Example: publicDir: "./test/views"
Description: The public directory for express