stephnna / crud_with_fastapi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FastAPI CRUD Application

This is a simple CRUD (Create, Read, Update, Delete) application built using FastAPI, SQLAlchemy, and SQLite.

Features

  • Create new items
  • Retrieve an item by ID
  • Retrieve all items
  • Update an item by ID
  • Delete an item by ID

Installation

Prerequisites

  • Python 3.8 or higher
  • pip (Python package installer)

Setup

  1. Clone the repository:

    git clone git@github.com:stephnna/crud_with_fastapi.git
    cd crud_with_fastapi
    

python -m venv venv source venv/bin/activate # On Windows use venv\Scripts\activate

pip install -r requirements.txt

Run

uvicorn main:app --reload

Access the interactive API documentation:

Swagger UI: http://127.0.0.1:8000/docs ReDoc: http://127.0.0.1:8000/redoc

About


Languages

Language:Python 100.0%