This project demonstrates a simple Python Flask application running in a Docker container.
- Docker installed on your system.
- Python 3.x installed for local testing.
-
Clone the repository:
git clone https://github.com/yourusername/dockerized-flask-app.git cd dockerized-flask-app
-
Install dependencies: pip install -r requirements.txt
-
Run the app: python app.py Calculator API This is a simple Flask-based Calculator API that performs basic arithmetic operations such as addition, subtraction, multiplication, and division. The API is lightweight, easy to use, and provides results directly via query parameters.
Addition (/add) Subtraction (/subtract) Multiplication (/multiply) Division (/divide)
Addition:
Endpoint: /add Query Parameters: x: First number y: Second number
http://127.0.0.1:8001/add?x=5&y=3
The result of 5.0 + 3.0 is 8.0
Add support for more advanced mathematical functions (e.g., modulus, square root, exponents). Integrate user authentication for more secure usage. Provide a more user-friendly frontend.