A clean and interactive web application that allows users to search for detailed information about any country. This project provides a seamless interface to fetch geographical and demographic data using the REST Countries API and visualizes locations via Google Maps.
- Instant Search: Search for any country by its common or official name.
- Comprehensive Data: Displays the country's full name, capital city, region, and formatted population.
- Visual Identity: Dynamically fetches and displays the official country flag.
- Interactive Mapping: Integrated Google Maps API provides a real-time map view of the country's coordinates.
- Responsive UI: Built with Bootstrap and Font Awesome icons for a professional, mobile-friendly look.
- Error Handling: Custom feedback for empty searches, invalid country names, or API connection issues.
- Backend: Python Flask
- Frontend: HTML5, CSS3, Bootstrap 5, Font Awesome 6
- Data API: REST Countries API
- Map Integration: Google Maps JavaScript API
Country_info/
├── static/ # CSS, Images (banner, logo), and JS
├── templates/ # HTML templates (index.html, result.html)
├── app.py # Main Flask application & API logic
├── .env # Environment variables (API Keys)
├── .gitignore # Files to be ignored by Git (venv, .env)
└── README.md # Project documentation
git clone [https://github.com/Suraj-Gond/Country_info.git](https://github.com/Suraj-Gond/Country_info.git)
cd Country_info
python -m venv venv
.\venv\Scripts\activate
source venv/bin/activate
pip install flask requests python-dotenv
Create a .env file in the root directory to store your Google Maps API Key safely:
GOOGLE_MAPS_API_KEY=your_google_maps_api_key_here
python app.py
Open your browser and go to http://127.0.0.1:5000.
Distributed under the MIT License.

