This is a currency converter web application built using Flask and Python. It utilizes the Open Exchange Rates API to fetch the latest exchange rates.
-
Currency Conversion: Users can convert one currency to another by specifying the source currency, target currency, and amount.
-
User Authentication: Includes a simple user authentication system that allows users to register and log in securely.
-
Error Handling: Implements various error handling mechanisms to ensure a smooth user experience, including validation of input data and handling of API errors.
-
Styling: The application includes custom styling for a pleasant user interface, utilizing Bootstrap for front-end design.
-
Clone the repository:
git clone https://github.com/fduffoo/Flask-Currency-Converter
-
Navigate to the project directory:
cd Flask-Currency-Converter
-
Set up a virtual environment (optional but recommended):
python -m venv venv
-
On Windows:
venv\Scripts\activate
-
On macOS/Linux:
source venv/bin/activate
-
-
Install the required dependencies:
pip install -r requirements.txt
-
Set up your Open Exchange Rates API key:
Open the
app.py
file and replace'YOUR_API_KEY'
with your actual Open Exchange Rates API key.
-
Start the Flask development server:
python app.py
-
Access the application:
Open your web browser and go to
http://127.0.0.1:5000
to view the application.The server will display:
* Running on http://127.0.0.1:5000
This indicates that your application is running and can be accessed through this URL.
- Register a new account or log in with existing credentials.
- Input the source currency, target currency, and amount to convert.
- Click on the "Convert" button to see the conversion result.
Contributions are welcome! If you find any issues or have suggestions for improvements, feel free to open an issue or create a pull request.
This project is licensed under the MIT License. Feel free to customize the README according to your specific project details and preferences!