A solution for displaying NATS Streaming data streams in a user-friendly interface
To install the project, follow these steps:
- Clone the repository:
git clone https://github.com/username/repo.git
- Navigate to the project directory:
cd nats-ui
- Install the dependencies:
npm install
- Add your own NATS Streaming address as shown below in the urls.
..src/assets/urls.json
[
{ "text": "test","url": "http://localhost:8222/streaming"},
{ "text": "prod","url": "http://localhost:8223/streaming" },
...
]
To use the project, follow these steps:
- Start the application:
ng serve -o
- Open your web browser and navigate to
http://localhost:4200
To use Docker for running the project, follow these steps:
-
Create a
.env
file and define the required environment variables inside it:URL_JSON=[{ "text": "test", "url": "http://localhost:8222/streaming" },{ "text": "prod", "url": "http://localhost:8223/streaming" }]
-
Run the project with Docker command
docker run --env-file .env -p 4200:80 -d defactotechnology/nats-ui:tagname
Contributions are welcome! If you have any ideas, suggestions, or bug reports, please open an issue or submit a pull request.
This project is licensed under the MIT License.