volvox-express

0.1.0 • Public • Published

volvox-express

Express.js provider for volvox.js Microservice framework
Build Status Coverage Status

Preview

Sample code using Consul

import Volvox from 'volvox-core';
import vconsul from 'volvox-consul';
import vexpress from 'volvox-express';
 
import express from 'express'
 
async function main() {
    let server = express();
 
    server.get('/customers', (req, res) => {
       res.send({
            customerName: "Test customer",
            customerId: 666
        });
    });
 
    let volvox = new Volvox(vconsul(), vexpress());
    await volvox.bootstrap(server, "customers", "v1");
}
 
main();

Readme

Keywords

none

Package Sidebar

Install

npm i volvox-express

Weekly Downloads

1

Version

0.1.0

License

ISC

Last publish

Collaborators

  • ziyasal