# Country Details App
This is a simple Flask web application that allows users to search for country details such as the country name, capital, population, currency, and flag. The application retrieves the data from the REST Countries API and stores it in a SQLite database for future searches.
## Installation
1. Clone the repository to your local machine:
```bash
git clone https://github.com/your-username/country-details-app.git
-
Navigate to the project directory:
cd country-details-app
-
Create a virtual environment (optional but recommended):
python3 -m venv venv source venv/bin/activate
-
Install the required dependencies:
pip install -r requirements.txt
-
Make sure you are in the project directory and the virtual environment is activated (if applicable).
-
Run the Flask application:
python app.py
-
Open your web browser and go to
http://localhost:5000
to access the application. -
Enter a country name in the search form and click the "Search" button.
-
If the country details are available in the database, they will be displayed. Otherwise, the application will retrieve the details from the REST Countries API, store them in the database, and display them.
To run the application using Docker, follow these steps:
-
Build the Docker image:
docker build -t country-details-app .
-
Run the Docker container:
docker run -p 5000:5000 country-details-app
The application will be accessible at
http://localhost:5000
in your web browser.
Make sure to update the Docker-related instructions if there are any specific commands or considerations related to your Docker setup.