This project is a web application that calculates equivalent salaries between countries based on Purchasing Power Parity (PPP). It provides users with insights into how their salary might translate to different countries, considering factors like GDP per capita and income levels.
- Calculate equivalent salaries between countries
- Display additional country information (capital city, income level, GDP per capita)
- Responsive design for various screen sizes
- Loading animation during calculations
- Informational popups for credits and definitions
- Backend: Python with Flask
- Frontend: HTML, CSS, JavaScript
- APIs: World Bank API, Rest Countries API
- Clone the repository:
git clone [email protected]:damaradiprabowo/ppp-calculator-flask.git
- Install the required Python packages:
pip install -r requirements.txt
- Run the Flask application:
python app.py
- Open a web browser and navigate to http://localhost:5000
PPPCalculator/
│
├── app.py # Main Flask application
├── requirements.txt # Python dependencies
├── templates/
│ └── index.html # HTML template for the main page
└── static/
├── css/
│ └── styles.css # CSS styles for the application
└── js/
└── script.js # JavaScript for frontend functionality
Credits to the following resources:
- inspiration: https://www.chrislross.com/PPPConverter/
- World Bank API: https://www.worldbank.org/
- Rest Country API: https://restcountries.com/