Skip to content

veerpatil/fastapi-learning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

FastAPI Backend Project

A simple FastAPI backend service for managing shipment data.

Features

  • RESTful API endpoint for shipment information
  • Interactive API documentation with Scalar
  • Fast and modern Python web framework

API Endpoints

GET /shipment

Returns shipment information including content and status.

Response:

{
    "Content": "wooden tabel",
    "Status": "In transit"
}

GET /scalar

Interactive API documentation interface.

Setup and Installation

  1. Clone the repository

    git clone https://github.com/veerpatil/fastapi-learning.git
    cd backend
  2. Create virtual environment

    python3 -m venv venv
  3. Activate virtual environment

    # On macOS/Linux
    source venv/bin/activate
    
    # On Windows
    venv\Scripts\activate
  4. Install dependencies

    pip install fastapi scalar-fastapi

Running the Application

Start the development server:

fastapi dev 

The API will be available at:

Development

The main application code is located in app/main.py. The project uses:

  • FastAPI for the web framework
  • Uvicorn as the ASGI server
  • Scalar for API documentation

Project Structure

backend/
├── app/
│   ├── __init__.py
│   └── main.py
├── venv/
├── .gitignore
└── README.md

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages