Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cbornet/generator-jhipster-pulsar
JHipster module to support Apache Pulsar in your JHipster app
https://github.com/cbornet/generator-jhipster-pulsar
apache-pulsar jhipster jhipster-module messaging pulsar
Last synced: 20 days ago
JSON representation
JHipster module to support Apache Pulsar in your JHipster app
- Host: GitHub
- URL: https://github.com/cbornet/generator-jhipster-pulsar
- Owner: cbornet
- License: apache-2.0
- Created: 2019-11-26T15:17:53.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-30T19:22:29.000Z (about 2 years ago)
- Last Synced: 2024-10-17T07:52:37.544Z (3 months ago)
- Topics: apache-pulsar, jhipster, jhipster-module, messaging, pulsar
- Language: HTML
- Size: 548 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 26
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# generator-jhipster-pulsar
[![NPM version][npm-image]][npm-url] [![Build Status][github-image]][github-url] [![Dependency Status][daviddm-image]][daviddm-url]
> JHipster module to support Apache Pulsar in your JHipster app# Introduction
This is a [JHipster](https://www.jhipster.tech/) module, that is meant to be used in a JHipster application.
It provides integration with the [Apache Pulsar](https://pulsar.apache.org/) messaging system.# Prerequisites
As this is a [JHipster](https://www.jhipster.tech/) module, we expect you have JHipster and its related tools already installed (see [installing JHipster](https://www.jhipster.tech/installation/))
# Installation
To install this module:
```bash
npm install -g generator-jhipster-pulsar
```To update this module:
```bash
npm update -g generator-jhipster-pulsar
```# Usage
At the root of your JHipster app folder, enter:
```
yo jhipster-pulsar
```This will generate:
* a docker-compose file that can be used in development to spawn a dockerized pulsar instance. To launch it:
```
docker-compose -f src/main/docker/pulsar.yml up -d
```
* an HTTP endpoint to publish messages:
```
curl -X POST "http://localhost:8080/api/pulsar/publish/my-topic?message=test"
```
* a Server-Sent-Event endpoint to consume messages as a stream:
```
curl "http://localhost:8080/api/pulsar/consume/my-subscription?topic=my-topic"
```
* integration tests using the [Pulsar Testcontainers module](https://www.testcontainers.org/modules/pulsar/)# License
Apache-2.0 © [Christophe Bornet](https://github.com/cbornet)
[npm-image]: https://img.shields.io/npm/v/generator-jhipster-pulsar.svg
[npm-url]: https://npmjs.org/package/generator-jhipster-pulsar
[github-image]: https://github.com/cbornet/generator-jhipster-pulsar/workflows/Build/badge.svg
[github-url]: https://github.com/cbornet/generator-jhipster-pulsar/actions
[daviddm-image]: https://david-dm.org/cbornet/generator-jhipster-pulsar.svg?theme=shields.io
[daviddm-url]: https://david-dm.org/cbornet/generator-jhipster-pulsar