Objectifs et contraintes du projet définit dans TrackingGPS.pdf
- Schema of Structure of Services
- Gif of Running All Services
- Docker
- Old Documentation (No Docker)
- Kafka
- API
- Auteurs
Do this on 3 different terminal on the same computer
In project directory :
docker-compose up --build
cd consumer/
docker-compose -f consumer-docker-compose.yml up --build
You can find the map here : http://localhost:4200/
Run it while consumer's is still "waiting for messages"
cd producer/
docker-compose -f producer-docker-compose.yml up --build
ctrl+c on every terminal
docker-compose -f producer-docker-compose.yml down --rmi all -v
docker-compose -f consumer-docker-compose.yml down --rmi all -v
docker-compose -f docker-compose.yml down --rmi all -v
Try :
cd front/
npm install
ng serve
Stop the front (ctrl + c)
Retry to run the docker-composes
Show containers
docker ps
Restart service
sudo service docker restart
Provides detailed information about the network
docker network inspect archimicroprojet_kafka_net
Stop a container (example)
docker compose -f bdd-docker-compose.yml down
Reset networks
docker network prune
List process that use port
sudo lsof -i :<PORT>
The following sections are old documentation for running things manually (no docker), kept as archive
The data is to the broker in the format: lat; long; Date; ip.
Example: "-48.744897; -78.637573; 2023-12-27 16:03:41; 172.17.9.135"
bin/zookeeper-server-start.sh config/zookeeper.properties
bin/kafka-server-start.sh config/server.properties
i needed to do this to install kafka i guess after cloning repo
./gradlew jar -PscalaVersion=2.13.11
write:
bin/kafka-console-producer.sh --topic test-topic --bootstrap-server localhost:9092
read:
bin/kafka-console-consumer.sh --topic test-topic --from-beginning --bootstrap-server localhost:9092
bin/kafka-topics.sh --create --topic coordinates --bootstrap-server localhost:9092 --partitions 2 --replication-factor 1
bin/kafka-topics.sh --bootstrap-server localhost:9092 --delete --topic coordinates
kafka-topics.sh --bootstrap-server localhost:9092 --list --command-config /path/to/client.properties
tail -f logs/server.log
listeners=PLAINTEXT://localhost:9092
uvicorn main:app --reload
ng serve
Aurelien CHAUVEHEID
Alan COURTEL
Ameilie LEANG
Marieme SALL