@forrestjs/kitchensink
Version:
ForrestJS demonstrational tool
27 lines (24 loc) • 750 B
JavaScript
/**
* You must provide a running PostgreSQL db to connect to:
* PGSTRING=postgres://username:password@hostname:port/db
*/
const forrestjs = require('@forrestjs/core');
const servicePGPubsub = require('@forrestjs/service-postgres-pubsub');
const serviceFastify = require('@forrestjs/service-fastify');
const serviceFastifyHealthz = require('@forrestjs/service-fastify-healthz');
forrestjs({
trace: 'compact',
settings: {
postgresPubSub: [
{
host: 'tyke.db.elephantsql.com',
port: 5432,
database: 'xtxoyaqe',
username: 'xtxoyaqe',
password: '--',
},
],
},
services: [servicePGPubsub, serviceFastify, serviceFastifyHealthz],
features: [],
}).catch((err) => console.error(err));