AjayPudasaini / fast_api_crud

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installation

  1. Clone the repository:

    git clone https://github.com/AjayPudasaini/fast_api_crud
  2. Setup environment:

    cd fast_api_crud
  3. Activate environment:

    # On Windows
    venv\Scripts\activate
    
    # On macOS and Linux
    source venv/bin/activate
  4. Install requirements:

    pip install -r requirements.txt
  5. Change PostgreSQL URL:

    Update the DATABASE URL in fast_api_crud/database/database.py to match your database configuration.

  6. Run the local server:

    uvicorn main:app --reload

Usage

After starting the server, you can access the API documentation in your browser at localhost:8000/docs/. The Swagger UI will allow you to interact with the API endpoints.

About


Languages

Language:Python 100.0%