This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as Config from 'config'; | |
const expressConfig = Config.get('express') as ExpressConfig; | |
class Bootstrap { | |
constructor(app) { | |
let self = this; | |
// Taking the list from the the config file | |
let bootstrap = expressConfig.bootstrap; | |
for (var module of bootstrap) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
core: (app) => { | |
// Security | |
console.log(':: Helmet'); | |
app.use(Helmet()); | |
// Compression | |
console.log(':: Compression'); | |
app.use(Compression()); | |
// Proper error messages |
NewerOlder