https://github.com/tirthraj1605/fastapi-user-management-crud-api
A simple FastAPI-based CRUD application to manage user data with search functionality. Includes endpoints for creating, reading, updating, deleting, and searching users by name.
https://github.com/tirthraj1605/fastapi-user-management-crud-api
api-project backend-development beginner-friendly-project crud-api fastapi python restful-api user-management web-api
Last synced: 11 months ago
JSON representation
A simple FastAPI-based CRUD application to manage user data with search functionality. Includes endpoints for creating, reading, updating, deleting, and searching users by name.
- Host: GitHub
- URL: https://github.com/tirthraj1605/fastapi-user-management-crud-api
- Owner: Tirthraj1605
- Created: 2025-03-15T14:46:45.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-16T12:30:47.000Z (over 1 year ago)
- Last Synced: 2025-03-26T12:16:19.674Z (about 1 year ago)
- Topics: api-project, backend-development, beginner-friendly-project, crud-api, fastapi, python, restful-api, user-management, web-api
- Language: Python
- Homepage:
- Size: 85 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ⚡ FastAPI User Management CRUD API
**FastAPI User Management CRUD API** is a **high-performance, Python-based RESTful API** built with **FastAPI**, offering full **Create, Read, Update, Delete (CRUD)** operations for managing users. It uses an **in-memory database (Python dictionary)** for lightweight and quick prototyping.
---
## 🔗 Live Demo
👉 [Try the Live API](https://fastapi-user-management-crud-api.onrender.com/docs)
---
## 📺 Screenshot

---
## 🚀 Features
- ✅ Create a new user
- 🔍 Get all users
- 🔎 Get a specific user by ID
- ✏️ Update user details
- ❌ Delete a user by ID
- ⚡ FastAPI Swagger UI for interactive documentation at `/docs`
- 📊 SQLite integration using SQLAlchemy ORM
- 🗂️ Modular project structure (models, database, main)
---
## 🛠 Tech Stack
- Python 3
- FastAPI
- pydantic
- Uvicorn
---
## 📑 API Endpoints
| Method | Endpoint | Description |
|--------|----------------|-------------------------|
| GET | `/` | Welcome message |
| POST | `/users/` | Create a new user |
| GET | `/users/` | Get all users |
| GET | `/users/{id}` | Get user by ID |
| PUT | `/users/{id}` | Update user by ID |
| DELETE | `/users/{id}` | Delete user by ID |
---
## How to Run
### 1️⃣ Clone the repository
``git clone https://github.com/Tirthraj1605/FastAPI-User-Management-CRUD-API.git``
``cd FastAPI-User-Management-CRUD-API``
### 2️⃣ Create and activate a virtual environment (optional but recommended)
``python -m venv venv``
### On Windows
``venv\Scripts\activate``
### On Linux/macOS
``source venv/bin/activate``
### 3️⃣ Install dependencies
``pip install -r requirements.txt``
### 4️⃣ Run the FastAPI app
``uvicorn main:app --reload``
---
## Author
- Tirthraj Bhalodiya
- tirthrajbhalodiya2003@gmail.com
- [LinkedIn](https://www.linkedin.com/in/tirthraj-bhalodiya-97534b227/)