This project is an interactive world map built using HTML, CSS, and JavaScript with a Node.js backend. It allows users to explore countries by hovering over different regions and clicking to view detailed information about each country.
- Interactive Map: Hover over different countries to see highlighting and country names.
- Country Details: Click on any country to view detailed information including:
- Capital city
- Local time (based on country's timezone)
- Population
- Region and subregion
- Languages
- Currencies
- Area
- Flag
- Responsive Design: Works on various screen sizes with smooth transitions.
- Real-time Data: Fetches up-to-date country information from REST Countries API.
-
Frontend:
- HTML5 for structure
- CSS3 for styling and animations
- JavaScript for dynamic interactions
- SVG for the interactive map
-
Backend:
- Node.js with Express for the server
- REST Countries API for country data
index.html— Main structure and map interfacestyles.css— Custom styles for the map and UIscript.js— Frontend logic for interactions and data displayserver.js— Backend API proxy and data processingassets/— Contains the SVG world map and other assets
-
Clone the repository:
git clone https://github.com/hariomgupta70427/World-Map.git
-
Open
index.htmlin your browser to view and interact with the map.
- Adding search functionality to quickly find countries
- Implementing zoom and pan capabilities
- Adding historical data and statistics
- Creating comparison features between countries
Feel free to fork this project, open issues, or submit pull requests to make it better!
This project is open-source and available under the MIT License.