simulator-gps

command module
v0.0.0-...-723d53e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2022 License: Unlicense Imports: 6 Imported by: 0

README

Simulator-gps

fake gps data produced to apache kafka. to get in real time a json latitude and longitude coordinates when has been pass a clientId and routeId parameters from specific client to system, then all the time that a new drive will want started a new move we can consume this data in our front-end.

DevOps

infra folder

  • apache kafka

Docker commands

if you don't have a docker user group in the environment, always start typing sudo in each command

  • start container simulator
    $ docker-compose up -d
  • Check if working
    $ docker ps
    $ docker-compose ps
  • get container shell command

simulator is the name of the your container

    $ docker exec -it simulator bash
  • state listen a topic in kafka

readTest is the topic in this sample

kafka-console-consumer --bootstrap-server=localhost:9092 --topic=readTest

add line in /etc/hosts file if you receive a error like don't resolve localhost names

172.17.0.1    kafka

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
app
infra

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL