Skip to content

Latest commit

 

History

History
46 lines (31 loc) · 1.19 KB

README.md

File metadata and controls

46 lines (31 loc) · 1.19 KB

Flask API Practice

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.

Features

  • 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

Prerequisites

  • Python 3.11
  • Flask 3.0.3

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/flask-api-practice.git
    cd flask-api-practice
  2. Create and activate a virtual environment:

    python3 -m venv venv
    source venv/bin/activate  # On Windows, use `venv\Scripts\activate`
  3. Install the required packages:

    pip install -r requirements.txt

Running the Application

  1. Start the Flask application:

    flask run
  2. The application will be available at http://127.0.0.1:5000.