UNPKG

@codetanzania/majifix-service

Version:

A representation of an acceptable service (request types)(e.g Water Leakage) offered(or handled) by a specific jurisdiction

87 lines (81 loc) 1.76 kB
/** * @name majifix-service * @description A representation of an acceptable * service (request types)(e.g Water Leakage) offered(or handled) * by a specific jurisdiction. * * @author Benson Maruchu <benmaruchu@gmail.com> * @author lally elias <lallyelias87@mail.com> * @since 0.1.0 * @version 0.1.0 * @license MIT * @example * * const { Service, start } = require('majifix-service-group'); * start(error => { ... }); * */ import { pkg } from '@lykmapipo/common'; import { apiVersion as httpApiVersion } from '@lykmapipo/env'; import { start } from '@lykmapipo/express-common'; import Service from './service.model'; import serviceRouter from './service.http.router'; /** * @name info * @description package information * @type {object} * * @author lally elias <lallyelias87@gmail.com> * @since 1.0.0 * @version 0.1.0 */ export const info = pkg( `${__dirname}/package.json`, 'name', 'description', 'version', 'license', 'homepage', 'repository', 'bugs', 'sandbox', 'contributors' ); /** * @name Service * @description Service model * * @author lally elias <lallyelias87@gmail.com> * @since 0.1.0 * @version 0.1.0 */ export { Service }; /** * @name serviceRouter * @description service http router * * @author lally elias <lallyelias87@gmail.com> * @since 0.1.0 * @version 0.1.0 */ export { serviceRouter }; /** * @name apiVersion * @description http router api version * @type {string} * * @author lally elias <lallyelias87@gmail.com> * @since 0.1.0 * @version 0.1.0 */ export const apiVersion = httpApiVersion(); /** * @function start * @name start * @description start http server * * @author lally elias <lallyelias87@gmail.com> * @since 0.1.0 * @version 0.1.0 */ export { start };