{"id":34726596,"url":"https://github.com/eraydmrcoglu/turkey-earthquake-tracker","last_synced_at":"2026-04-16T05:04:43.398Z","repository":{"id":323284343,"uuid":"1092738152","full_name":"eraydmrcoglu/turkey-earthquake-tracker","owner":"eraydmrcoglu","description":"Full-Stack Real-Time Turkey Earthquake Tracker App Created with Next.js and NestJS","archived":false,"fork":false,"pushed_at":"2025-11-26T13:56:33.000Z","size":348,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-26T13:40:23.608Z","etag":null,"topics":["afad","axios","earthquake-tracker","nestjs","nextjs","react","react-svg","shadcn-ui","tailwindcss","tanstack-table","turkiye-deprem"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eraydmrcoglu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-09T07:50:34.000Z","updated_at":"2025-11-26T13:56:37.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/eraydmrcoglu/turkey-earthquake-tracker","commit_stats":null,"previous_names":["eraydmrcoglu/turkey-earthquake-tracker","eraydmrcoglu/turkiye-earthquake-tracker"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/eraydmrcoglu/turkey-earthquake-tracker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eraydmrcoglu%2Fturkey-earthquake-tracker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eraydmrcoglu%2Fturkey-earthquake-tracker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eraydmrcoglu%2Fturkey-earthquake-tracker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eraydmrcoglu%2Fturkey-earthquake-tracker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eraydmrcoglu","download_url":"https://codeload.github.com/eraydmrcoglu/turkey-earthquake-tracker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eraydmrcoglu%2Fturkey-earthquake-tracker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31872036,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"online","status_checked_at":"2026-04-16T02:00:06.042Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["afad","axios","earthquake-tracker","nestjs","nextjs","react","react-svg","shadcn-ui","tailwindcss","tanstack-table","turkiye-deprem"],"created_at":"2025-12-25T02:29:58.992Z","updated_at":"2026-04-16T05:04:43.382Z","avatar_url":"https://github.com/eraydmrcoglu.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🌍 Turkey Earthquake Tracker\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/user-attachments/assets/301ef2c9-e7a0-497d-81e2-bde295a4bdb4\" alt=\"Home Page\" /\u003e \n\u003c/div\u003e\n\nA full-stack web application that visualizes **real-time earthquake data across Turkey** on an interactive SVG map. The **backend (NestJS)** fetches and processes earthquake data from official sources such as **Kandilli Observatory** or **AFAD**,  while the **frontend (Next.js)** displays it dynamically with responsive UI, hover tooltips, and clean visual design.\n\n---\n\n## ✨ Features\n\n- 🗺️ Interactive map with color-coded earthquake locations  \n- 📊 Displays magnitude, date, and time of recent earthquakes  \n- 🔁 Real-time API data updates  \n- 💬 Smooth hover tooltips with scrollable details  \n- 🎨 Fully responsive TailwindCSS design  \n- 🧩 Modular full-stack architecture (Next.js + NestJS)\n\n---\n\n## 🧠 Tech Stack\n\n### 🎨 Frontend\n- **Next.js 15** – React-based frontend framework  \n- **TypeScript** – Type-safe development  \n- **TailwindCSS** – Utility-first CSS framework  \n- **ReactSVG** – Interactive SVG rendering  \n- **Axios / Fetch** – For API communication  \n\n### ⚙️ Backend\n- **NestJS** – Scalable Node.js backend framework  \n- **TypeScript** – Strongly typed backend logic  \n- **Axios** – Fetches live earthquake data  \n- **Cron Jobs** – Periodic data updates  \n- **Express Adapter** – REST API endpoints  \n\n---\n\n## ⚙️ Installation \u0026 Setup\n\n### 🧱 Backend (NestJS)\n```bash\ncd backend\nnpm install\nnpm run start:dev\n```\n- Runs on → http://localhost:3000\n- API endpoint → /api/depremler\n\n## 💻 Frontend (Next.js)\n```bash\ncd frontend\nnpm install\nnpm run dev\n```\n- Runs on → http://localhost:3001\n- Automatically connects to backend via the getDepremler() API call\n\n## 🔗 API Endpoints\n\n| Endpoint              | Method | Description                        |\n|------------------------|--------|------------------------------------|\n| /api/depremler         | GET    | Returns all recent earthquakes     |\n| /api/depremler/:city   | GET    | Returns earthquakes for a city     |\n| /health                | GET    | Health check endpoint              |\n\n## 📄 Example Response\n```bash\n[\n  {\n    \"yer\": \"Balikesir - Sindirgi\",\n    \"tarih\": \"2025-11-09\",\n    \"saat\": \"10:24:58\",\n    \"buyukluk\": 2.9\n  },\n  {\n    \"yer\": \"Manisa - Akhisar\",\n    \"tarih\": \"2025-11-09\",\n    \"saat\": \"10:15:12\",\n    \"buyukluk\": 1.8\n  },\n  {\n    \"yer\": \"Izmir - Seferihisar\",\n    \"tarih\": \"2025-11-09\",\n    \"saat\": \"09:48:05\",\n    \"buyukluk\": 3.2\n  }\n]\n```\n\n## 🧰 Developer Notes\n- 🗺️ Turkey map SVG → frontend/public/assets/turkey-map.svg\n- 🔁 Data fetching logic → frontend/src/api/api.ts\n- 💬 Tooltip + hover events → DepremHaritasi.tsx\n- 🎨 Styling → TailwindCSS for all components\n- 🧠 Backend services → deprem.service.ts\n\n## 🚀 Future Improvements\n- ⚡ Real-time WebSocket support\n- 🔔 Push notifications for major earthquakes\n- 📱 Mobile optimization\n- 📍 Epicenter markers with zoom support\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feraydmrcoglu%2Fturkey-earthquake-tracker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feraydmrcoglu%2Fturkey-earthquake-tracker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feraydmrcoglu%2Fturkey-earthquake-tracker/lists"}