2.6.0 • Published 9 years ago

musepm v2.6.0

Weekly downloads
1
License
ISC
Repository
github
Last release
9 years ago

Muse

Muse simplifies microservices.

Install

npm install -g runvnc/muse

Services

Service sign-up and credential management is auto-magic. APIs are focused on core functionality to stay clean and simple. Service modules return promises that automatically connect.

All service methods return promises.

Testing/Mocks

All services implement an identical mock API which is enabled by calling require('muse').mockAll();

Adding Services

To add a microservice to your project simply run muse enable {service_name}. This command will:

  • automatically install the corresponding modules and add them to package.json.

  • walk them through the sign-up for that service.

Slack Realtime

musepm enable slack
                                                                  
require('musepm').signon('slack', 'testbot03')
.then( function(slack) {   
  slack.on('open', function() {
    let channel = slack.getChannelByName('general');
    channel.send('Testing abc');
  });                                                             
});                                                               

Architecture

Microservice modules

Naming convention

  • Mock classes for testing are in muse-{service}/lib/mock.js, e.g. muse-slack/lib/mock.js for the Slack mock implementation. (Might use Sinon to enhance mock objects returned to user.)

  • Each mock and back end implements a class with an identical set of public methods.

  • The muse-{service} module checks whether mocking is enabled and if so provides and initializes muse-{service}/lib/mock.js or if not mocking then muse-{service}/lib/real.js.

2.6.0

9 years ago

2.5.0

9 years ago

2.4.0

9 years ago

2.3.0

9 years ago

2.1.0

9 years ago

2.0.0

9 years ago

1.7.0

9 years ago

1.6.0

9 years ago

1.5.0

9 years ago

1.4.0

9 years ago

1.3.17

9 years ago

1.3.16

9 years ago

1.3.14

9 years ago

1.3.13

9 years ago

1.3.12

9 years ago

1.3.8

9 years ago

1.3.7

9 years ago

1.3.6

9 years ago

1.3.5

9 years ago

1.3.4

9 years ago

1.3.3

9 years ago

1.3.2

9 years ago

1.3.1

9 years ago

1.3.0

9 years ago

1.1.4

9 years ago

1.1.3

9 years ago

1.1.2

9 years ago

1.1.0

9 years ago

1.0.15

9 years ago

1.0.14

9 years ago

1.0.13

9 years ago

1.0.12

9 years ago

1.0.11

9 years ago

1.0.10

9 years ago

1.0.9

9 years ago

1.0.8

9 years ago

1.0.7

9 years ago

1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago