- Docker and docker-compose installed
- ports 8000-8003 are free
- jq installed (not mandatory, just to prettify the curl response)
cd replicated_log
docker-compose build
docker-compose up -d
docker-compose ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
03811ae4c2b5 wiki_analyzer_python_streaming-service "/bin/bash -c '\n wh…" 13 minutes ago Up 7 seconds 127.0.0.1:8001->8000/tcp wiki_analyzer_python_streaming-service_1
551484deb722 wiki_analyzer_python_user-statistic-service "/bin/bash -c '\n wh…" 13 minutes ago Up 6 seconds 127.0.0.1:8000->8000/tcp wiki_analyzer_python_user-statistic-service_1
46734ee51526 timescale/timescaledb:2.0.0-pg12 "docker-entrypoint.s…" 13 minutes ago Up 8 seconds 127.0.0.1:5432->5432/tcp wiki_analyzer_python_timescaledb_1
https://github.com/vi/websocat
ws://0.0.0.0:8001/recent_change
send go
to start streaming
ws://0.0.0.0:8001/recent_change_by_users
send coma separated user list to start streaming
eg GÜT,Fnielsen,Lettler,Hammersoft,Gamaliel,Lettler,Srich32977,Bdijkstra,Vahurzpu,Bdijkstra,Rar
curl -X GET "http://0.0.0.0:8003//chart/contribution/{username}?limit=100&granularity=hour" -H "accept: application/json"
Available date granularities:
year
month
day
hour
eg curl -X GET "http://0.0.0.0:8000/topics_by_user/PhiliPpe%20rogeZ" -H "accept: application/json"
or curl -X GET "http://0.0.0.0:8000/topics_by_user_rx/PhiliPpe%20rogeZ" -H "accept: application/json"
The same as previous but implemented on RxPy
curl -X GET "http://0.0.0.0:8000/most_active_user/?year=2021&month=2" -H "accept: application/json"
`curl -X GET "http://localhost:8000/topic_typos_rx" -H "accept: application/json"`
docker-compose stop && docker-compose rm -f