https://github.com/masstransit/sample-node
A sample node app sending requests to a .NET consumer
https://github.com/masstransit/sample-node
Last synced: about 1 year ago
JSON representation
A sample node app sending requests to a .NET consumer
- Host: GitHub
- URL: https://github.com/masstransit/sample-node
- Owner: MassTransit
- Created: 2021-03-31T17:39:48.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-31T21:08:12.000Z (about 5 years ago)
- Last Synced: 2025-02-16T14:57:52.292Z (over 1 year ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 1
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MassTransit / JavaScript Interoperability
This sample uses MassTransit (for .NET) combined with the [MassTransit (for JavaScript) NPM package](https://www.npmjs.com/package/masstransit-rabbitmq) to send requests from a node application and handle the subsequent response from a MassTransit Consumer (running in .NET). The services communicate via RabbitMQ (included in the `docker-compose.yml` file).
To start the .NET service, use `docker-compose up --build` in the `src/RequestService` folder.
Once started, run the node client (in the `node` folder) by running `npm install`, `npm run build`, and `npm start`.
The client should begin sending requests and displaying the responses. Type `quit` and press Enter to exit.