This is a simple CRUD (Create, Read, Update, Delete) application built using FastAPI, SQLAlchemy, and SQLite.
- Create new items
- Retrieve an item by ID
- Retrieve all items
- Update an item by ID
- Delete an item by ID
- Python 3.8 or higher
- pip (Python package installer)
-
Clone the repository:
git clone [email protected]: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
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