Git Product home page Git Product logo

bunshin-node's Introduction

##BunShin-node

Appengine Like version environment for hosting node apps.

wip

bunshin-defense

##Installation

sudo npm install bunshin-node

##Usage

bunshin-node -d <path-to-db>
             -p <port-to-run-proxy>
             -a <apps-directory>

##Description

This recipe is made for managing multiple-node apps on the same physical machine.

  • install bunshin-node
  • for now we can use our example folder assosiated with the project.
  • The example/deployments directory has multiple node apps pointed to different port on the same machine. Note: Make sure you specify port of the app in package.json (see example/deployments/app1/package.json)
  • now run
    mkdir mock
    # this direcotory will posses our db .json file.
    # In our case it will be versions.json file.
    bunshin-node -a example/ -d mock/ -p 8080
    
    

Working

This bunshine-node is a http-proxy which runs on a sandboxed environments of node-apps. Each node app running under this sandbox environment should supply its port and version in package.json file.

In our case app1/package.json consists of '1-0-0' and '8086' as version and port and app2/package.json consists of '1-0-1' and '8087' as version and port.

In order to make a request to the specific module on sandbox. this is the scheme which is to be followed.

<version>.dot.localhost:8080/
# assuming the bunshin-node is running on 8080

##License MIT

bunshin-node's People

Contributors

sourcepirate avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

bunshin-node's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.