Skip to content
/ volvox Public

Self announcing micro-services for NodeJS with powerful service discovery using Consul

License

Notifications You must be signed in to change notification settings

ziyasal/volvox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

volvox.js - Self announcing services

Volvox.js simple framework with powerful service discovery using Consul

Build Status Coverage Status

Just develop your app using your favorite framework Express, Hapi, Restify etc then Volvox.js takes care of the rest. It starts application on available port registers application to Consul. volvox.js provides /status endpoint for Consul Health Checks.

Moved: https://github.com/volvoxjs

Here is sample code shows express.js and Consul integration

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

Self announcing micro-services for NodeJS with powerful service discovery using Consul

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published