himanshu-03 / Basic-FastAPI-Application

This is a basic FastAPI application showcasing CRUD (Create, Read, Update, Delete) operations using SQLAlchemy as the ORM (Object-Relational Mapper) and PostgreSQL as the database.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FastAPI CRUD Application with SQLAlchemy and PostgreSQL

This is a basic FastAPI application showcasing CRUD (Create, Read, Update, Delete) operations using SQLAlchemy as the ORM (Object-Relational Mapper) and PostgreSQL as the database.

Setup

Prerequisites

  • Python 3.7 or above
  • PostgreSQL Database

Installation

  1. Clone the repository:

    git clone https://github.com/himanshu-03/Basic-FastAPI-Application.git
    cd app
    
  2. Install dependencies:

    pip install -r requirements.txt
    
  3. Configure the Database:

    Create a PostgreSQL database and update the DATABASE_URL in main.py with your database connection details.

  4. Run the FastAPI Application:

    uvicorn main:app --reload
    
    The application will be running at http://127.0.0.1:8000.
    

🪪 License

This project follows the MIT LICENSE.


Connect with me

Github     LinkedIn     Twitter     Instagram     Gmail   

(Back to top)

About

This is a basic FastAPI application showcasing CRUD (Create, Read, Update, Delete) operations using SQLAlchemy as the ORM (Object-Relational Mapper) and PostgreSQL as the database.

License:MIT License


Languages

Language:Python 100.0%