A real time messaging API
https://starwars.fandom.com/wiki/C1_personal_comlink/Legends
Run postgres db and kafka
docker-compose up -dTo run API
go run main.goTo run worker service (consumer)
go run worker/main.gopost messages
curl -s -X POST http://localhost:8080/message \
-H 'content-type: application/json' \
-d '{"content": "hi", "sender": 5, "receiver": 6}' | jq
curl -s -X POST http://localhost:8080/message \
-H 'content-type: application/json' \
-d '{"content": "how are you?", "sender": 5, "receiver": 6}' | jq
curl -s -X POST http://localhost:8080/message \
-H 'content-type: application/json' \
-d '{"content": "All good. How about you?", "sender": 6, "receiver": 5}' | jq
curl -s -X POST http://localhost:8080/message \
-H 'content-type: application/json' \
-d '{"content": "Same here", "sender": 5, "receiver": 6}' | jqretrieve conversation
curl -X GET "http://localhost:8080/message?user1=5&user2=6" | jqmark message read
curl -s -X PATCH http://localhost:8080/message/:id/read | jq- Add client - react
- QR code - 1 to 1 conversations
- websocket chat in client
- encryption
- docker - run api and worker process