0.0.20 • Published 5 years ago
@guivic/fabric-node v0.0.20
fabric-node
node.js helpers to create quickly micro services and API
Microservice
(async function () {
try {
const PORT = process.env.PORT || 3000;
const microService = new MicroService({
port: PORT, // default: 3000
initMethod: () => { // default: () => {}
console.log('code runned before starting the microservice');
},
bodyParserJSON: true, // body parser configured to accept json (default: false)
fileUpload: true, // to accept file upload (default: false)
sentryDSN: 'SENTRY_KEY', // to configure sentry with the microservice (default: null)
});
await microService.start();
console(`microservice listening on port ${PORT}`);
} catch (error) {
console.log(error.message);
}
}());
0.0.20
5 years ago
0.0.19
6 years ago
0.0.18
6 years ago
0.0.17
6 years ago
0.0.16
6 years ago
0.0.15
6 years ago
0.0.14
6 years ago
0.0.13
6 years ago
0.0.12
6 years ago
0.0.11
6 years ago
0.0.10
6 years ago
0.0.9
6 years ago
0.0.8
6 years ago
0.0.7
6 years ago
0.0.6
6 years ago
0.0.5
6 years ago
0.0.4
6 years ago
0.0.3
6 years ago
0.0.2
6 years ago
0.0.1
6 years ago