{"id":24319475,"url":"https://github.com/cemayan/earthquake_collector","last_synced_at":"2026-04-14T04:31:21.254Z","repository":{"id":38910723,"uuid":"249285951","full_name":"cemayan/earthquake_collector","owner":"cemayan","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-27T04:37:58.000Z","size":5624,"stargazers_count":2,"open_issues_count":17,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-12-26T15:13:05.394Z","etag":null,"topics":["earthquakes","eureka","expo","flink","golang","nodejs","react-native","stream-processing","zuul"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cemayan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-22T22:40:14.000Z","updated_at":"2021-05-25T16:21:35.000Z","dependencies_parsed_at":"2023-02-15T05:31:45.293Z","dependency_job_id":null,"html_url":"https://github.com/cemayan/earthquake_collector","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cemayan/earthquake_collector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cemayan%2Fearthquake_collector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cemayan%2Fearthquake_collector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cemayan%2Fearthquake_collector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cemayan%2Fearthquake_collector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cemayan","download_url":"https://codeload.github.com/cemayan/earthquake_collector/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cemayan%2Fearthquake_collector/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31782736,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T02:24:21.117Z","status":"ssl_error","status_checked_at":"2026-04-14T02:24:20.627Z","response_time":153,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["earthquakes","eureka","expo","flink","golang","nodejs","react-native","stream-processing","zuul"],"created_at":"2025-01-17T15:33:33.384Z","updated_at":"2026-04-14T04:31:21.235Z","avatar_url":"https://github.com/cemayan.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# earthquake_collector\n\n- Deprem verilerini verilen aralıkta http://udim.koeri.boun.edu.tr/zeqmap/xmlt/son24saat.xml adresinden çekerek yeni bir deprem varsa bunu **Kafka**'da bir topic'e(**earthquake**) yazar.\n- Kafka'ya yazılan bu topicleri dinleyen **Flink** uygulaması ise gerekli analizleri yaparak bunu bir topic'e(**analyzedTopic**)  yazar.\n\n- Kullanıcıdan(Mobile App) gelen ayarları ve analyzedTopic'i dinleyen **Push Service** ise  bunu Expo Server'a iletecek olan **Node.js** uygulamasına iletir.\n\n- Node.js uygulaması Mobile app'den gelen ExponentPushToken, Location ve  TimeInterval değelerini bildiği için gelen istediği **Expo**'ya iletir.\n\n- Expo ise gelen isteğin hangi cihaza gideceğini bildiği için oraya push gönderir.\n\n\u003e Flink vb olaylarına girmeden sadece root dizindeki **docker-compose up**\nyaparak **earthquake** topic'ini dinlerseniz son depremlere ulaşabilirsiniz.\n\n\u003e Önemli: Proje canlı bir ortamda çalışmadığı için ngrok ile yönlendirme yaptım **Zuul**'a onun için  **app/service/userConfigService.js** ve  **app/push/registerPushNotification.js** dosyalarında **http://*********.ngrok.io** şeklinde gördüğünüz yerleri local'de **ngrok** başlatıp **8762** portunu açarsanız çalışmaya başlar.\n\n---\n\nngrok kullanımı -\u003e\n\n```bash\n ./ngrok http 8762\n ```\n---\nTüm proke aşağıdaki sıra ile çalıştırabilir(Hepsi dockerize olduğu için) :\n\n```bash\ndocker-compose up --build\n\ncd pushnotificationhandler\ndocker-compose up --build\n\ncd app\nexpo start\n\n```\n\n## Endpoints\n\n\u003e Eureka : localhost:8761\n\n\u003e Zuul: localhost:8762\n\n\u003e Expo-server: localhost:3000\n\nServices: \n\n- user-configs(User'dan gelen location ve time bilgisini kafkaya yazar.)\n- token-service(User'dan gelen Exponenttoken bilgisini kafkaya yazar.)\n- db-service(Kafkaya yazılan servisten gelen bilgileri db'ye yazar.)\n\n\n\n## Kafka \u0026 Scraper \u0026 Steaming Engine \u0026 Expo Server\n\n**Start** :\n\n```bash\ndocker-compose up --build\n```\n\n**Stop**:\n\n```bash\ndocker-compose down -v --rmi all --remove-orphans\n```\n\n---\n\n### **Kafka** \n\nYardımcı olması için aşağıdakş komutlarla kafkaya yazılan eventleri görebilirsiniz.\n\n**Bash**:\n\n```bash\ndocker exec -it kafka_cayan  /bin/sh\n```\n\n**EartQuake Comsumer**:\n```bash\nkafka-console-consumer.sh --bootstrap-server localhost:9092 --topic earthquake --from-beginning\n```\n\n**EartQuake Producer**:\n\n```bash\nkafka-console-producer.sh --broker-list localhost:9092 --topic earthquake\n```\n\n**AnalyzedTopic Producer**:\n\n```bash\nkafka-console-producer.sh --broker-list localhost:9092 --topic analyzedTopic\n```\n\n---\n\n## Push Notification Handler\n**Start** :\n\n```bash\ncd pushnotificationhandler\ndocker-compose up --build\n```\n\n**Stop**:\n\n```bash\ndocker-compose down -v --rmi all --remove-orphans\n```\n\n## Mobile App\n\n![/images/mobile_app.jpeg](/images/mobile_app.jpeg)\nGörsel-1\n\n![/images/mobile_app2.jpeg](/images/mobile_app2.jpeg)\nGörsel-2\n \n```bash\ncd app\nexpo start\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcemayan%2Fearthquake_collector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcemayan%2Fearthquake_collector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcemayan%2Fearthquake_collector/lists"}