Skip to content

fduffoo/Flask-Currency-Converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Currency Converter with Flask

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.

Features

  • Currency Conversion: Users can convert one currency to another by specifying the source currency, target currency, and amount. currency_converter convert

  • User Authentication: Includes a simple user authentication system that allows users to register and log in securely. login

  • 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.

Installation

  1. Clone the repository:

    git clone https://github.com/fduffoo/Flask-Currency-Converter
  2. Navigate to the project directory:

    cd Flask-Currency-Converter
  3. Set up a virtual environment (optional but recommended):

    python -m venv venv
    • On Windows:

      venv\Scripts\activate
    • On macOS/Linux:

      source venv/bin/activate
  4. Install the required dependencies:

    pip install -r requirements.txt
  5. 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.

Running the Application

  1. Start the Flask development server:

    python app.py
  2. 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.

Usage

  1. Register a new account or log in with existing credentials.
  2. Input the source currency, target currency, and amount to convert.
  3. Click on the "Convert" button to see the conversion result.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, feel free to open an issue or create a pull request.

License

This project is licensed under the MIT License. Feel free to customize the README according to your specific project details and preferences!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published