Skip to content

ziyasal/volvox-consul

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

volvox-consul

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

Sample code using Express.js

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();

About

Consul provider for volvox.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published