This is a small Flask application created for practice purposes. The aim is to interact with a third-party API by performing GET and POST requests, along with implementing proper error handling, logging, and a consistent response format. This project is designed to enhance backend development skills.
- GET and POST requests to a third-party API
- Error Handling: Proper management of different types of errors
- Logging: Implementation of logging for debugging and monitoring
- Consistent Response Format: Ensuring all responses follow a standard format
- Python 3.11
- Flask 3.0.3
-
Clone the repository:
git clone https://github.com/yourusername/flask-api-practice.git cd flask-api-practice
-
Create and activate a virtual environment:
python3 -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate`
-
Install the required packages:
pip install -r requirements.txt
-
Start the Flask application:
flask run
-
The application will be available at
http://127.0.0.1:5000
.