Go to file
Darko Draskovic 3b5d51276f
NOISSUE - Remove twins-service mqtt dependency and publish notifs to nats (#1042)
* Add Publish func to nats

Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>

* Remove mqtt client

Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>

* Add nats publisher

Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>

* Separate nats publisher from subscriber

Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>

* Update tests creation methods

Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>

* Add logger to NATS Publisher

Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
2020-02-20 00:10:10 +01:00
.github NOISSUE - Housekeeping. Update README. (#497) 2018-12-09 20:06:20 +01:00
authn Fix issuing recovery key (#1007) 2020-01-16 18:43:06 +01:00
bootstrap MF-932 - User API keys (#941) 2019-12-16 16:22:09 +01:00
cli NOISSUE - Fix minimal password length (#1023) 2020-01-29 18:54:34 +01:00
cmd NOISSUE - Remove twins-service mqtt dependency and publish notifs to nats (#1042) 2020-02-20 00:10:10 +01:00
coap MF-950 - Runtime error in normalizer - CBOR SenML (#974) 2019-11-29 20:47:28 +01:00
docker MF-998 - Add Twins service to Makefile and docker-compose.yml (#1035) 2020-02-12 18:34:48 +01:00
errors MF-538 - Improve logging and API errors (#866) 2019-11-20 14:43:41 +01:00
http Migrate from dep to go modules (#971) 2019-11-27 15:29:34 +01:00
internal/email MF-538 - Improve logging and API errors (#866) 2019-11-20 14:43:41 +01:00
logger MF-788 - Remove date and minimize copyright comments (#876) 2019-10-07 16:14:47 +02:00
lora Migrate from dep to go modules (#971) 2019-11-27 15:29:34 +01:00
metrics NOISSUE - Add exported metrics visualization for grafana (#326) 2018-06-15 17:08:49 +02:00
mqtt Fixed Aedes dependencies (#1036) 2020-02-13 14:37:16 +01:00
opcua NOISSUE - Add opc-ua type handling and unsubscription (#1029) 2020-02-05 17:16:45 +01:00
readers MF-442 - Add SSL encryption to the MongoDB, InfluxDB and Cassanda readers (#1024) 2020-02-05 20:24:36 +01:00
scripts Simplify CI script (#979) 2019-12-10 18:53:14 +01:00
sdk/go NOISSUE - Fix minimal password length (#1023) 2020-01-29 18:54:34 +01:00
things MF-442 - Add SSL encryption to the MongoDB, InfluxDB and Cassanda readers (#1024) 2020-02-05 20:24:36 +01:00
tools NOISSUE - Fix docs (#952) 2019-11-16 16:20:29 +01:00
transformers MF-950 - Runtime error in normalizer - CBOR SenML (#974) 2019-11-29 20:47:28 +01:00
twins NOISSUE - Remove twins-service mqtt dependency and publish notifs to nats (#1042) 2020-02-20 00:10:10 +01:00
users NOISSUE - Fix minimal password length (#1023) 2020-01-29 18:54:34 +01:00
vendor MF-950 - Runtime error in normalizer - CBOR SenML (#974) 2019-11-29 20:47:28 +01:00
writers MF-950 - Runtime error in normalizer - CBOR SenML (#974) 2019-11-29 20:47:28 +01:00
ws MF-950 - Runtime error in normalizer - CBOR SenML (#974) 2019-11-29 20:47:28 +01:00
.dockerignore Fixed docs instructions in README (#1010) 2020-01-17 14:44:13 +01:00
.env MF-998 - Add Twins service to Makefile and docker-compose.yml (#1035) 2020-02-12 18:34:48 +01:00
.gitignore NOISSUE - Clean NginX files, move .gitignores to dirs (#853) 2019-09-16 11:47:34 +02:00
CHANGELOG.md Added changelog for 0.10.0 release (#984) 2019-12-17 17:32:27 +01:00
CONTRIBUTING.md Corrected grammar and rephrased a few sentences to read nicely (#641) 2019-03-07 16:25:37 +01:00
LICENSE Fix copyright year (#1009) 2020-01-17 12:51:01 +01:00
MAINTAINERS Update MAINTAINERS 2018-08-28 22:42:47 +02:00
Makefile MF-998 - Add Twins service to Makefile and docker-compose.yml (#1035) 2020-02-12 18:34:48 +01:00
README.md Fixed docs instructions in README (#1010) 2020-01-17 14:44:13 +01:00
api.go MF-788 - Remove date and minimize copyright comments (#876) 2019-10-07 16:14:47 +02:00
authn.pb.go MF-932 - User API keys (#941) 2019-12-16 16:22:09 +01:00
authn.proto MF-932 - User API keys (#941) 2019-12-16 16:22:09 +01:00
doc.go MF-788 - Remove date and minimize copyright comments (#876) 2019-10-07 16:14:47 +02:00
env.go MF-788 - Remove date and minimize copyright comments (#876) 2019-10-07 16:14:47 +02:00
go.mod MF-730 - Add digital twin service for things (#855) 2020-01-10 17:25:36 +01:00
go.sum MF-730 - Add digital twin service for things (#855) 2020-01-10 17:25:36 +01:00
message.pb.go MF-919 - Mainflux message updates (#924) 2019-11-05 11:57:16 +01:00
message.proto MF-919 - Mainflux message updates (#924) 2019-11-05 11:57:16 +01:00
publisher.go MF-919 - Mainflux message updates (#924) 2019-11-05 11:57:16 +01:00
topics.go MF-919 - Mainflux message updates (#924) 2019-11-05 11:57:16 +01:00
version.go Added changelog for 0.10.0 release (#984) 2019-12-17 17:32:27 +01:00

README.md

Mainflux

build go report card coverage license chat

banner

Mainflux is modern, scalable, secure, open-source, and patent-free IoT cloud platform written in Go.

It accepts user and thing connections over various network protocols (i.e. HTTP, MQTT, WebSocket, CoAP), thus making a seamless bridge between them. It is used as the IoT middleware for building complex IoT solutions.

For more details, check out the official documentation.

Mainflux is member of the Linux Foundation and an active contributor to the EdgeX Foundry project. It has been made with ❤️ by Mainflux Labs, which maintains the project and offers professional services around it.

Features

  • Multi-protocol connectivity and bridging (HTTP, MQTT, WebSocket and CoAP)
  • Device management and provisioning (Zero Touch provisioning)
  • Mutual TLS Authentication (mTLS) using X.509 Certificates
  • Fine-grained access control
  • Message persistence (Cassandra, InfluxDB, MongoDB and PostgresSQL)
  • Platform logging and instrumentation support (Grafana, Prometheus and OpenTracing)
  • Event sourcing
  • Container-based deployment using Docker and Kubernetes
  • LoRaWAN network integration
  • SDK
  • CLI
  • Small memory footprint and fast execution
  • Domain-driven design architecture, high-quality code and test coverage

Prerequisites

The following are needed to run Mainflux:

Developing Mainflux will also require:

Install

Once the prerequisites are installed, execute the following commands from the project's root:

docker-compose -f docker/docker-compose.yml -f docker/aedes.yml up

This will bring up the Mainflux docker services and interconnect them. This command can also be executed using the project's included Makefile:

make run

Usage

The quickest way to start using Mainflux is via the CLI. The latest version can be downloaded from the official releases page.

It can also be built and used from the project's root directory:

make cli
./build/mainflux-cli version

Additional details on using the CLI can be found in the CLI documentation.

Documentation

Official documentation is hosted at Mainflux Read The Docs page. Documentation is auto-generated, checkout the instructions on official docs repository:

If you spot an error or a need for corrections, please let us know - or even better: send us a PR.

Additional practical information, news and tutorials can be found on the Mainflux blog.

Authors

Main architect and BDFL of Mainflux project is @drasko.

Additionally, @nmarcetic and @janko-isidorovic assured overall architecture and design, while @manuio and @darkodraskovic helped with crafting initial implementation and continuously worked on the project evolutions.

Besides them, Mainflux is constantly improved and actively developed by @anovakovic01, @dusanb94, @srados, @gsaleh, @blokovi, @chombium, @mteodor and a large set of contributors.

Maintainers are listed in MAINTAINERS file.

The Mainflux team would like to give special thanks to @mijicd for his monumental work on designing and implementing a highly improved and optimized version of the platform, and @malidukica for his effort on implementing the initial user interface.

Contributing

Thank you for your interest in Mainflux and the desire to contribute!

  1. Take a look at our open issues. The good-first-issue label is specifically for issues that are great for getting started.
  2. Checkout the contribution guide to learn more about our style and conventions.
  3. Make your changes compatible to our workflow.

We're Hiring

If you are interested in working professionally on Mainflux, please head to company's careers page or shoot us an e-mail at careers@mainflux.com.

The best way to grab our attention is by sending PRs 😎.

Community

License

Apache-2.0