{"id":20452625,"url":"https://github.com/lamba01/ip-address-tracker","last_synced_at":"2025-07-01T12:32:59.575Z","repository":{"id":173351734,"uuid":"650318512","full_name":"lamba01/IP-Address-Tracker","owner":"lamba01","description":"This is further tests on my knowledge of APIS integration. I worked with two APIs to get ip and display the user location","archived":false,"fork":false,"pushed_at":"2023-07-03T20:30:51.000Z","size":1727,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-05T09:48:05.308Z","etag":null,"topics":["api","api-client","api-gateway","fetch","fetch-api"],"latest_commit_sha":null,"homepage":"https://ip-address-tracker-dusky-pi.vercel.app","language":"JavaScript","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/lamba01.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}},"created_at":"2023-06-06T20:18:00.000Z","updated_at":"2023-07-03T20:26:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"bc68ab2f-e698-4438-905f-c0a56e4b81ab","html_url":"https://github.com/lamba01/IP-Address-Tracker","commit_stats":null,"previous_names":["lamba01/ip-address-tracker"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lamba01/IP-Address-Tracker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamba01%2FIP-Address-Tracker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamba01%2FIP-Address-Tracker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamba01%2FIP-Address-Tracker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamba01%2FIP-Address-Tracker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lamba01","download_url":"https://codeload.github.com/lamba01/IP-Address-Tracker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamba01%2FIP-Address-Tracker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262963249,"owners_count":23391783,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["api","api-client","api-gateway","fetch","fetch-api"],"created_at":"2024-11-15T11:09:49.040Z","updated_at":"2025-07-01T12:32:59.555Z","avatar_url":"https://github.com/lamba01.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IP-Address-Tracker\n# Frontend Mentor - IP address tracker solution\n\nThis is a solution to the [IP address tracker challenge on Frontend Mentor](https://www.frontendmentor.io/challenges/ip-address-tracker-I8-0yYAH0). Frontend Mentor challenges help you improve your coding skills by building realistic projects. \n\n## Table of contents\n\n- [Overview](#overview)\n  - [The challenge](#the-challenge)\n  - [Screenshot](#screenshot)\n  - [Links](#links)\n- [My process](#my-process)\n  - [Built with](#built-with)\n  - [What I learned](#what-i-learned)\n  - [Continued development](#continued-development)\n  - [Useful resources](#useful-resources)\n- [Author](#author)\n- [Acknowledgments](#acknowledgments)\n\n\n## Overview\n\n### The challenge\n\nUsers should be able to:\n\n- View the optimal layout for each page depending on their device's screen size\n- See hover states for all interactive elements on the page\n- See their own IP address on the map on the initial page load\n- Search for any IP addresses and see the key information and location\n\n### Screenshot\n\n![](./screenshot2.png)\n\n\n### Links\n\n- Solution URL: [Solution](https://github.com/lamba01/IP-Address-Tracker)\n- Live Site URL: [Live Site](https://ip-address-tracker-dusky-pi.vercel.app/)\n\n## My process\n\n### Built with\n\n- Semantic HTML5 markup\n- CSS custom properties\n- Flexbox\n- Fetch Api for two APIs\n\n\n\n### What I learned\n\n\n```js\n// API key from https://geo.ipify.org\nconst apiKey = 'at_ACAZL6otukqccjfgRJCHOKwLz1huZ';\n\n// Function to create and display the map using Leaflet.js\nfunction createMap(lat, lng) {\n  const map = L.map('map').setView([lat, lng], 13);\n\n  L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {\n    maxZoom: 19,\n    attribution: '\u0026copy; \u003ca href=\"https://www.openstreetmap.org/\"\u003eOpenStreetMap\u003c/a\u003e contributors'\n  }).addTo(map);\n\n  return map;\n}\n\n// Fetch the user's IP address and location details\nfetch(`https://geo.ipify.org/api/v1?apiKey=${apiKey}`)\n  .then(response =\u003e response.json())\n  .then(data =\u003e {\n    const { lat, lng } = data.location;\n    const ipAddress = data.ip;\n\n    // Display the IP address\n    document.getElementById('ip-address').innerHTML = ` ${ipAddress}`;\n\n    // Create and display the map\n    const map = createMap(lat, lng);\n\n    // Add a marker to the map\n    L.marker([lat, lng]).addTo(map)\n      .bindPopup(`Location: ${data.location.city}, ${data.location.country}`)\n      .openPopup();\n  });\n```\n\n\n\n### Continued development\n\nI will work on one more project involving APIs and features before moving on to learn React\n\n\n## Author\n\n- Website - [Add your name here](https://www.your-site.com)\n- Frontend Mentor - [@lamba01](https://www.frontendmentor.io/profile/lamba01)\n- Twitter - [@lambacodes](https://www.twitter.com/lambacodes)\n\n\n## Acknowledgments\n\nThank myself for how far I've gone and haven't given up\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flamba01%2Fip-address-tracker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flamba01%2Fip-address-tracker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flamba01%2Fip-address-tracker/lists"}