IP Address Geolocation Viewer is a web application built using React, Leaflet, and other technologies, allowing users to discover information about their IP address and its geographical location.
- Displays the user's IP address and its location on an interactive map.
- Showcase important data such as country, state/province, city, zip code, ISP, coordinates, and continent.
- Enhance user experience by visualizing the corresponding country flag.
Follow these instructions to set up and run the project locally on your machine.
Node.js: Make sure you have Node.js installed. You can download it from nodejs.org.
-
Clone the repository:
git clone https://github.com/adhanif/mapReact.git
-
Navigate to the project directory:
cd mapReact
-
Install dependencies:
npm install
-
Obtain an API key from
ipgeolocation.io
by signing up for an account. -
Create a .env file in the project root directory and add your API key:
VITE_API_KEY=your_api_key_here
npm run dev
- React: JavaScript library for building user interfaces.
- Leaflet: Open-source JavaScript library for interactive maps.
- Bootstrap: Front-end component library for responsive design.
- Axios: Promise-based HTTP client for making API requests.