## PolyApp
**Kind**: global class
* [PolyApp](#PolyApp)
* [new PolyApp([opts])](#new_PolyApp_new)
* [.start([port], [callback])](#PolyApp+start)
* [.stop(callback)](#PolyApp+stop)
* [.include(Module, moduleOptions)](#PolyApp+include)
### new PolyApp([opts])
Initializes a new PolyApp
| Param | Type | Default | Description |
| --- | --- | --- | --- |
| [opts] | Object | {} | |
| [opts.routesPrefix] | string | "/api" | A string (beginning with slash) to be prepended to all modules routes |
| [opts.port] | number | 3000 | Port number to listen to |
### polyApp.start([port], [callback])
Open a web server
**Kind**: instance method of [PolyApp](#PolyApp)
| Param | Type | Description |
| --- | --- | --- |
| [port] | number | Optional port to listen to. If it is undefined the port property is used. |
| [callback] | function | Called after web server starts listening |
### polyApp.stop(callback)
Close the web server
**Kind**: instance method of [PolyApp](#PolyApp)
| Param | Type | Description |
| --- | --- | --- |
| callback | function | Called after web server is stopped |
### polyApp.include(Module, moduleOptions)
Add a new module to the stack
**Kind**: instance method of [PolyApp](#PolyApp)
| Param | Type | Description |
| --- | --- | --- |
| Module | function | Module constructor |
| moduleOptions | Object | Module options |