Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/juelvaldivia/techtalk-mqtt
Ejemplo para el uso de MQTT en Python y NodeJS
https://github.com/juelvaldivia/techtalk-mqtt
javascript mqtt mqtt-client mqtt-server nodejs
Last synced: 4 days ago
JSON representation
Ejemplo para el uso de MQTT en Python y NodeJS
- Host: GitHub
- URL: https://github.com/juelvaldivia/techtalk-mqtt
- Owner: juelvaldivia
- Created: 2022-10-04T17:26:27.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-10-04T21:20:48.000Z (over 2 years ago)
- Last Synced: 2024-11-09T19:24:20.050Z (2 months ago)
- Topics: javascript, mqtt, mqtt-client, mqtt-server, nodejs
- Language: JavaScript
- Homepage:
- Size: 24.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Setup.
## 1. Install Docker and docker compose.
If you are using macOS you only need to install it from their official website. Docker Desktop also includes docker-compose, docker-engine and other tools related to Docker. Here's the link: [Docker Desktop](https://hub.docker.com/editions/community/docker-ce-desktop-mac/).
## 2. Start docker service.
If you are using macOS, only press command + space bar, then type "Docker" and press ENTER. Another option is openning it from the dashboard or running the command `open -a Docker`.
## 3. Clone this repository.
#### EXAMPLE:
```
$ cd ~/code/
``````
$ git clone [email protected]:juelvaldivia/mqtt-techtalk.git
``````
$ cd mqtt-techtalk
```### 4. Run docker compose to run `MQTT BROKER MOSQUITTO`.
```
$ docker-compose up -d
```### 5. Run `Client NodeJS`.
```
$ cd nodejs
``````
$ npm install
``````
$ npm start
```### 5. Run `Client Python`.
```
$ cd python
``````
$ pip install -r requirements.txt
``````
$ python3 main.py
```