Show:
Module: parch

Base application

Constructor

Application
(
  • options
)

Parameters:

Methods

_configure
(
  • config
)
Object
private

Normalizes constructor options

Parameters:

  • config Object

    user passed config options

Returns:

Object:

final config option

_getProjectDirectory () String
private

Returns the project directory (cwd) from which Application is being instantiated

Returns:

String:

directory

_initialize
(
  • name
)
private

Run an initializer by name

Parameters:

listen
(
  • port
)
Promise

Starts the server

Parameters:

Returns:

Promise
runProjectInitializers () Promise

Runs all consumer initializers

Returns:

Promise
start
(
  • port
)
Promise

starts listening on the defined port

Parameters:

  • port Number

    the port to listen on. Default: 3000

Returns:

Promise

Properties

app

Object Restify service

Restify application instance

projectDirectory

String

The consuming project's directory