https://github.com/josephgodwinkimani/fastapi-ticketing-api
A simple support ticketing API built with FastAPI, Prisma, and SQLite. This API allows users to create tickets, add replies, and manage their support requests efficiently.
https://github.com/josephgodwinkimani/fastapi-ticketing-api
fastapi prisma pydantic sqlite3 ticketing-system
Last synced: 3 months ago
JSON representation
A simple support ticketing API built with FastAPI, Prisma, and SQLite. This API allows users to create tickets, add replies, and manage their support requests efficiently.
- Host: GitHub
- URL: https://github.com/josephgodwinkimani/fastapi-ticketing-api
- Owner: josephgodwinkimani
- Created: 2024-08-30T11:15:55.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-27T17:56:39.000Z (9 months ago)
- Last Synced: 2025-02-26T14:26:41.783Z (8 months ago)
- Topics: fastapi, prisma, pydantic, sqlite3, ticketing-system
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
# FastAPI Support Ticketing API
A simple support ticketing API built with FastAPI, Prisma, and SQLite. This API allows users to create tickets, add replies, and manage their support requests efficiently.
## Features
- User management (create users)
- Ticket management (create, close, and reply to tickets)
- Logging of all operations and errors
- Database for easy setup and usage```
fastapi_ticketing_api/
│
├── app/
│ ├── init.py
│ ├── main.py # Entry point for the FastAPI application
│ ├── models.py # Database models (not used directly with Prisma)
│ ├── schemas.py # Pydantic schemas for request and response validation
│ ├── crud.py # CRUD operations for user and ticket management
│ ├── database.py # Database connection setup using Prisma
│ ├── logging_config.py # Logging configuration
│ └── api/
│ ├── init.py
│ └── routes.py # API routes for user and ticket management
│
├── prisma/
│ ├── schema.prisma # Prisma schema definition
│ └── init.py
│
├── requirements.txt # Project dependencies
└── README.md # Project documentation
```### Getting Started
### 1. Create a virtual environment
```bash
python -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
```### 2. Install the required packages
```bash
pip install -r requirements.txt
```### 3. Push the Prisma schema to the database
```bash
cd prisma
prisma db push
```### 4. Run the FastAPI application
```bash
uvicorn app.main:app --reload
```See all HTTP Endpoints [here.](http://127.0.0.1:8000/docs)