Skip to content

LIKHITH-M/FastAPI_Product_Management

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“¦ FastAPI Product Management API

A high-performance RESTful API built to manage product inventory and pricing. This project demonstrates modern backend development practices using FastAPI connected to a PostgreSQL database.


πŸ› οΈ Tech Stack

  • Framework: FastAPI (Python)
  • Database: PostgreSQL
  • ORM: SQLAlchemy
  • Validation: Pydantic
  • Server: Uvicorn

✨ Key Features

  • RESTful CRUD: Complete Create, Read, Update, and Delete operations for products.
  • Database Integration: Persistent storage using PostgreSQL with SQLAlchemy ORM.
  • Data Validation: Automatic request validation using Pydantic models.
  • Interactive Documentation: Auto-generated Swagger UI and ReDoc.

πŸ”Œ API Endpoints Overview

Method Endpoint Function
GET / API Health Check / Welcome
GET /products/ Retrieve all products
GET /products/{id} Retrieve a specific product
POST /products/ Add a new product to inventory
PUT /products/{id} Update existing product details
DELETE /products/{id} Remove a product

πŸš€ Quick Start

To run this project locally:

  1. Clone the repository and navigate to the project folder.
  2. Install dependencies:
    pip install fastapi uvicorn sqlalchemy psycopg2-binary
  3. Configure Database: Update the connection string in database.py.
  4. Run the Server:
    uvicorn main:app --reload
  5. View Documentation: Open your browser to http://localhost:8000/docs to test the API interactively.

πŸ‘¨β€πŸ’» Author

Likhith Gowda M Built for learning and demonstrating Backend Engineering skills.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published