express-mountie
Express service discovery and mounting
Last updated 6 years ago by darthtrevino .
Apache · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install express-mountie 
SYNC missed versions from official npm registry.

Build Status Dependency Status Code Climate

NPM

express-mountie

Express Service Auto-Discovery and Mounting

express-mountie is a microlibrary for discovering express routers and apps and then mounting them into a master express app. This is useful for organization and strict segregation of RESTful resources. Organizing services in this way will allow you to break apart and independently scale your webapps when it becomes appropriate.

project
│   README.md
│   Gulpfile.js
└───server
    ├───apps
    |   └───subresourceA
    |   |   └───index.js (exports express app)
    |   └───subresourceB
    |       └───index.js (exports express router)
    │   main.js
// main.js
var express = require('express'),
    mountie = require('express-mountie'),
    path = require('path'),
    app = express();
    
mountie({
    parent: app,
    src: path.join(__dirname, './apps'),
    prefix: '/api'
});
app.listen(3000);

Installation

$ npm install express-mountie --save

Current Tags

  • 3.0.0                                ...           latest (6 years ago)

5 Versions

  • 3.0.0                                ...           6 years ago
  • 2.1.1                                ...           6 years ago
  • 2.1.0                                ...           6 years ago
  • 2.0.0                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (1)
Dev Dependencies (11)
Dependents (1)

Copyright 2014 - 2017 © taobao.org |