Go to file
Darko Draskovic f785116a6f
NOISSUE - Add aggregate attribute-based search for twin retrieval (#1027)
* Add attribute map for twin retrieval

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

* Restructure attributes from map[string] to []

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

* Remove RAM attribute map and use mongo aggregation

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

* Update tests

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

* Remove attribute map service property

Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
2020-02-04 23:25:51 +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 - Add aggregate attribute-based search for twin retrieval (#1027) 2020-02-04 23:25:51 +01:00
coap MF-950 - Runtime error in normalizer - CBOR SenML (#974) 2019-11-29 20:47:28 +01:00
docker NOISSUE - Remove UI from docker-compose (#1001) 2020-01-15 15:27:24 +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 Fix Redis event naming (#996) 2020-01-09 14:18:23 +01:00
opcua NOISSUE - Add subtopic to opcua messages (#1022) 2020-01-28 23:30:55 +01:00
readers MF-950 - Runtime error in normalizer - CBOR SenML (#974) 2019-11-29 20:47:28 +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 NOISSUE - Fix metadata in add Things endpoint (#1028) 2020-02-04 12:33:28 +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 - Add aggregate attribute-based search for twin retrieval (#1027) 2020-02-04 23:25:51 +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 NOISSUE - Remove UI from docker-compose (#1001) 2020-01-15 15:27:24 +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 NOISSUE - Remove UI from docker-compose (#1001) 2020-01-15 15:27:24 +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