2016-04-28 22:07:16 +02:00
# Mainflux
2015-10-02 14:15:46 +00:00
2016-09-20 21:24:27 +02:00
[](LICENSE)
[](https://gitter.im/Mainflux/mainflux?utm_source=badge& utm_medium=badge& utm_campaign=pr-badge& utm_content=badge)
2015-07-06 23:43:19 +02:00
2015-10-02 16:18:35 +02:00
### About
2017-09-19 00:02:46 +02:00
Mainflux is modern massively-scalable and highly-secured open source and patent-free IoT cloud platform written in Go, based on a set of [microservices ](#architecture ).
2015-07-06 23:43:19 +02:00
2016-04-28 22:19:08 +02:00
It allows device, user and application connections over various network protocols, like HTTP, MQTT, WebSocket and CoAP, making a seamless bridge between them. It is used as the IoT middleware for building complex IoT solutions.
2015-10-02 16:18:35 +02:00
2017-09-03 00:16:10 +02:00

2016-11-12 19:49:23 +01:00
2017-06-03 21:09:26 +02:00
Mainflux is built with < 3 by [Mainflux company ](https://www.mainflux.com/ ) and community contributors .
2015-10-02 16:18:35 +02:00
2016-11-12 19:29:14 +01:00
### Architecture
Mainflux IoT cloud is composed of several components, i.e. microservices:
2016-11-24 02:19:06 +01:00
| Link | Description |
|:--------------|:----------------------|
2017-08-23 23:34:18 +02:00
| [http-adapter ](https://github.com/mainflux/http-adapter ) | HTTP message API server |
2017-07-08 17:04:01 +02:00
| [manager ](https://github.com/mainflux/manager ) | Service for managing platform resources, including auth |
2017-08-23 23:34:18 +02:00
| [message-writer ](https://github.com/mainflux/message-writer ) | Worker behind NATS that writes messages into Cassandra DB |
| [mqtt-adapter ](https://github.com/mainflux/mqtt-adapter ) | MQTT PUB/SUB Broker (with WebSocket support) |
2017-03-01 23:58:00 +01:00
| [mainflux-coap ](https://github.com/mainflux/mainflux-coap ) | CoAP Server |
2016-11-24 02:19:06 +01:00
| [mainflux-ui ](https://github.com/mainflux/mainflux-ui ) | System Dashboard in Angular 2 Material |
2016-11-24 02:22:40 +01:00
| [mainflux-cli ](https://github.com/mainflux/mainflux-cli ) | Interactive command-line interface |
2017-08-23 23:34:18 +02:00
| [Cassandra ](https://github.com/apache/cassandra ) | System Database |
2016-12-04 20:32:20 +01:00
| [NATS ](https://github.com/nats-io/gnatsd ) | System event bus |
2016-12-30 20:41:40 +01:00
| [NGINX ](https://github.com/nginx/nginx ) | Reverse Proxy with Auth forwarding |
2016-11-12 19:29:14 +01:00
2017-09-03 00:16:10 +02:00

2017-01-15 00:57:59 +01:00
2016-04-28 22:16:01 +02:00
### Install/Deploy
2017-09-18 21:38:06 +02:00
#### Docker Composition
2016-04-28 22:16:01 +02:00
- Clone the repo:
```bash
2017-09-18 21:38:06 +02:00
git clone https://github.com/Mainflux/mainflux.git
```
- Go to `mainflux/docker` dir:
```
cd mainflux/docker
2016-04-28 22:16:01 +02:00
```
2015-10-02 16:18:35 +02:00
2017-09-18 21:41:57 +02:00
- Use [`mainflux-docker.sh` ](docker/mainflux-docker.sh ) script to start the Docker composition:
2015-07-06 23:43:19 +02:00
```bash
2017-09-18 21:41:57 +02:00
./mainflux-docker.sh start
2015-10-02 16:18:35 +02:00
```
2016-04-28 22:19:08 +02:00
2016-11-12 19:29:14 +01:00
This will automatically download Docker images from [Mainflux Docker Hub ](https://hub.docker.com/u/mainflux/ ) and deploy the composition of Mianflux microservices.
2016-04-28 22:07:16 +02:00
2017-09-19 00:02:46 +02:00
#### From Sources
2017-09-18 21:41:57 +02:00
Use script [`install_sources.sh` ](install_sources.sh ).
2017-09-18 21:38:06 +02:00
This will create `./mainflux_sources` dir, git-clone all the sources from GitHub repos and place them in appropriate destination (Go code goes to $GOPATH, symlinks are created).
It will also give you the instructions how to finish the installation manually.
2016-08-22 23:54:41 +02:00
### Features
An extensive (and incomplete) list of features includes:
- Responsive and scalable architecture based on a set of [microservices ](https://en.wikipedia.org/wiki/Microservices )
- Set of clean APIs: HTTP RESTful, MQTT, WebSocket and CoAP
- SDK - set of client libraries for many HW platforms in several programming languages: C/C++, JavaScript, Go and Python
- Device management and provisioning and OTA FW updates
- Highly secured connections via TLS and DTLS
2017-08-23 23:34:18 +02:00
- Enhanced and fine-grained security with Access Control Lists
2016-08-22 23:54:41 +02:00
- Easy deployment and high system scalability via [Docker ](https://www.docker.com/ ) images
- Clear project roadmap, extensive development ecosystem and highly skilled developer community
- And many more
2017-09-03 01:04:31 +02:00
### Roadmap
- [x] Use `go-kit` microservice framework
- [x] Switch to `Cassandra`
- [x] Use Docker multi-stage builds
- [ ] Enable service discovery (`Consul` or `etcd` )
- [ ] Finish `Dashflux` (Mainflux UI) MVP
- [ ] Release `v1.0.0` (ETA: end of September)
- [ ] Deploy public cloud
- [ ] E2E tests and benchmarks
- [ ] Ansible and Terraform deployment scripts
- [ ] Kubernetes deployment procedure
2017-09-11 11:41:43 +02:00
Project task management is done via [GitHub issues ](https://github.com/Mainflux/mainflux/issues ) opened for this repo and properly labeled.
2017-09-11 10:15:22 +02:00
2015-10-17 00:03:21 +02:00
### Documentation
2017-09-03 01:04:31 +02:00
Mainflux documentation can be found [here ](http://mainflux.readthedocs.io ).
2015-12-07 01:03:28 +01:00
2015-10-17 00:03:21 +02:00
### Community
2016-08-23 10:50:31 +02:00
#### Mailing list
2016-09-20 20:03:31 +02:00
[mainflux ](https://groups.google.com/forum/#!forum/mainflux ) Google group
2016-08-23 10:50:31 +02:00
For quick questions and suggestions you can also use GitHub Issues.
2015-10-17 00:03:21 +02:00
#### IRC
[Mainflux Gitter ](https://gitter.im/Mainflux/mainflux?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge )
#### Twitter
[@mainflux ](https://twitter.com/mainflux )
2016-08-23 00:21:32 +02:00
### Authors
2016-10-29 20:07:58 +02:00
Main architect and BDFL of Mainflux project is [@drasko ](https://github.com/drasko ). Additionaly, initial version of Mainflux was architectured and crafted by [@janko-isidorovic ](https://github.com/janko-isidorovic ), [@nmarcetic ](https://github.com/nmarcetic ) and [@mijicd ](https://github.com/mijicd ).
2016-08-23 00:21:32 +02:00
Maintainers are listed in [MAINTAINERS ](MAINTAINERS ) file.
2016-10-29 20:07:58 +02:00
Contributors are listed in [CONTRIBUTORS ](CONTRIBUTORS ) file.
2015-10-02 16:18:35 +02:00
### License
2015-10-10 00:55:04 +02:00
[Apache License, version 2.0 ](LICENSE )