2.6.0 • Published 10 years ago

musepm v2.6.0

Weekly downloads
1
License
ISC
Repository
github
Last release
10 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

10 years ago

2.5.0

10 years ago

2.4.0

10 years ago

2.3.0

10 years ago

2.1.0

10 years ago

2.0.0

10 years ago

1.7.0

10 years ago

1.6.0

10 years ago

1.5.0

10 years ago

1.4.0

10 years ago

1.3.17

10 years ago

1.3.16

10 years ago

1.3.14

10 years ago

1.3.13

10 years ago

1.3.12

10 years ago

1.3.8

10 years ago

1.3.7

10 years ago

1.3.6

10 years ago

1.3.5

10 years ago

1.3.4

10 years ago

1.3.3

10 years ago

1.3.2

10 years ago

1.3.1

10 years ago

1.3.0

10 years ago

1.1.4

10 years ago

1.1.3

10 years ago

1.1.2

10 years ago

1.1.0

10 years ago

1.0.15

10 years ago

1.0.14

10 years ago

1.0.13

10 years ago

1.0.12

10 years ago

1.0.11

10 years ago

1.0.10

10 years ago

1.0.9

10 years ago

1.0.8

10 years ago

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago