Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mhdbs/mqtt-golang-vernemq
The vernemq lightweight protocol for mqtt broker in golang
https://github.com/mhdbs/mqtt-golang-vernemq
cluster docker docker-compose golang iot lua mqtt mqtt-broker pub-sub vernemq
Last synced: about 4 hours ago
JSON representation
The vernemq lightweight protocol for mqtt broker in golang
- Host: GitHub
- URL: https://github.com/mhdbs/mqtt-golang-vernemq
- Owner: mhdbs
- License: apache-2.0
- Created: 2019-03-25T10:28:51.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-03-25T13:25:44.000Z (over 5 years ago)
- Last Synced: 2024-01-26T05:13:07.783Z (10 months ago)
- Topics: cluster, docker, docker-compose, golang, iot, lua, mqtt, mqtt-broker, pub-sub, vernemq
- Language: Erlang
- Size: 49.8 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mqtt-golang-vernemq
The vernemq lightweight protocol for mqtt broker in golang# NOTE
If your running docker you dont need to install golang and vernemq.
# Install go
Install Golang from the link.
https://golang.org/doc/install
add export PATH=$PATH:/usr/local/go/bin to .bashrc
then dosource .bashrc
mkdir go
then install go dep dependency manager (golang package manager)
$ go get -u github.com/golang/dep/cmd/dep
then run
$ dep ensure -v
# Install vernemq
Download Vernemq from here https://vernemq.com/downloads/
Then Run -->
$ sudo dpkg -i vernemq_1.4.1-1_amd64.deb$ sudo service vernemq start
Then you can copy the vernemq.conf from path go/src/mhdbs/mqtt-golang-vernemq/config/v/vernemq.conf to /etc/vernemq/
by this commandThen you can copy the vernemq.conf from path
$ sudo cp go/src/mhdbs/mqtt-golang-vernemq/config/v/vernemq.conf /etc/vernemq/# Start the Go Sever
$ go run main.go
Now the server is started open up the another terminal tab and run the client
# Start the Mqtt go client
$ cd {PWD}/go/src/mhdbs/mqtt-golang-vernemq/client
$ go run clientSub.go
# Running this service by Docker
Install docker from the link
https://www.docker.com/
$ cd {PWD}/go/src/mhdbs/mqtt-golang-vernemq/
$ docker-compose up
Now the containers are up and running
To show list of containers
$ docker container ls