A simple web application to fetch and display detailed information about a country, including its name, currency, population, capital city, and flag.
The app uses a backend built with Node.js and Express to serve requests to the Rest Countries API, which requires no API key. The frontend fetches this data and displays it in a user-friendly interface.
- Search for a country by name.
- Displays key country information:
- Country Name
- Currency Name
- Population
- Capital City
- Country Flag
- Responsive and easy-to-use interface.
- Backend: Node.js, Express, Axios
- Frontend: JavaScript, HTML, CSS
- API: Rest Countries API
- Others: CORS enabled on backend for frontend communication
- Node.js installed
- npm (Node Package Manager)
-
Clone the repository:
git clone https://github.com/AdhnanMohiuddin/Country-Info-Finder cd Country-Info-Finder -
Install dependencies:
npm install
-
Start the backend server:
node server.js
This will start the server on
http://localhost:8889. -
Open the
index.htmlfile in your browser: You can open it directly by double-clicking the file, or use a live server extension (e.g., VSCode Live Server) to serve it onhttp://127.0.0.1:5501/index.html.
- Enter the name of a country in the input field.
- Click the search icon or press
Enter. - The app will fetch and display the country's information.
- This project uses the free Rest Countries API, which does not require an API key.
- The backend server acts as a proxy to handle API requests and prevent CORS issues.
- Make sure the backend server is running before using the frontend.
This project is licensed under the MIT License.
Feel free to reach out if you have questions or feedback.


