An open API service indexing awesome lists of open source software.

https://github.com/trailsjs/trailpack-bootstrap

:package: bootstrap Trailpack (run a custom startup function in Trails)
https://github.com/trailsjs/trailpack-bootstrap

trailpack trails

Last synced: about 2 months ago
JSON representation

:package: bootstrap Trailpack (run a custom startup function in Trails)

Awesome Lists containing this project

README

        

# trailpack-bootstrap

Trailpack to run a bootstrap function when Trails server is ready.

## Usage
Load in your trailpack config.

```js
// config/main.js
module.exports = {
// ...
packs: [
require('trailpack-core'),
require('trailpack-bootstrap')
]
}
```

## Config

```js
// config/bootstrap.js
module.exports = function(app){

}
```

## License
[MIT](https://github.com/trailsjs/trailpack-bootstrap/blob/master/LICENSE)