Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/simsieg/Moleculer-exploration

Demo of the Moleculerjs microservice framework
https://github.com/simsieg/Moleculer-exploration

demo example microservices moleculer moleculerjs nodejs

Last synced: 2 months ago
JSON representation

Demo of the Moleculerjs microservice framework

Awesome Lists containing this project

README

        

# Moleculerjs Exploration

Simple microservices communicating via moleculerjs.

## Installation

```sh
npm install
```

## Run

### Execution

Run, each in a new terminal:

```
node index.js
```

```
node users.js
```

```
node emailSender.js
```

```
node emailTexter.js
```

```
node systemTime.js
```

### Interaction

Visit http://localhost:3000/users/yourName to create a new User.
In the terminal of `emailSender.js`, your personal Email will be printed.

Visit http://localhost:3000/time to get the systemtime.

## Services

| name | description |
|----------------|----------------------------------------------------------------|
| index.js | Exposes an interface to localhost and dispatches the requests. |
| users.js | Creates a new User object. |
| emailSender.js | Creates and Sends Emails. |
| emailTexter.js | Provides contents for Emails. |
| systemTime.js | Provides the time of the system. |