Skip to content

thbertoldi/middleware

Repository files navigation

Iot Middleware

Prime Directive:

‘Regardless of what we discover, we understand and truly believe that everyone did the best job he or she could, given what was known at the time, his or her skills and abilities, the resources available, and the situation at hand.’

Dependencies:

This project depends on the following projects to run correctly (install with the package manager of your distro of choice):

$ sudo pacman -S go docker npm
$ pip install --user docker-compose

Dev tools:

$ pip install --user pre-commit
$ pre-commit install

Makefile targets:

  • native_run: Run middleware application on native mode.
  • native_build: Build middleware application for Linux-x86.
  • docker_run: Run all application containers.
  • docker_build: Build middleware application on a container.

Running the project:

Start InfluxDB:

$ docker-compose up

Install web dependencies:

$ cd web
$ npm install

Build web application:

$ cd web
$ npm run build

Start Golang Middleware:

$ go run . --dev

Running the device simulator:

$ pip install -r tools/requirements.txt --user
$ python3 tools/simulador.py --mf --tf --cm