https://github.com/amirespahbodi/listings
listings api with fastapi
https://github.com/amirespahbodi/listings
alembic fastapi sqlalchemy
Last synced: about 2 months ago
JSON representation
listings api with fastapi
- Host: GitHub
- URL: https://github.com/amirespahbodi/listings
- Owner: AmirEspahbodi
- Created: 2023-05-17T10:48:59.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-19T19:48:04.000Z (almost 2 years ago)
- Last Synced: 2025-06-08T06:09:06.624Z (about 1 year ago)
- Topics: alembic, fastapi, sqlalchemy
- Language: Python
- Homepage:
- Size: 63.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Listings App
A full-featured listings application where users can authenticate, create, edit, and delete their listings. Users can also view listings from all other users. The app is built using **FastAPI**, **Pydantic**, **SQLAlchemy**, and **PostgreSQL**, with **JWT** for secure authentication.
## Features
- **Authentication**: Secure authentication using JWT tokens.
- **User Listings**: Users can create, edit, and delete their listings.
- **FastAPI**: Lightning-fast Python framework for building APIs.
- **SQLAlchemy**: ORM for database interactions.
- **PostgreSQL**: Reliable and robust database management.
## Tech Stack
- **Backend**: FastAPI
- **Database**: PostgreSQL
- **ORM**: SQLAlchemy
- **Data Validation**: Pydantic
- **Authentication**: JWT (JSON Web Tokens)
- **Deployment**: Docker
## Installation
1. Clone the repository:
```bash
git clone https://github.com/your-username/listings-app.git
cd listings-app
```
7. Run the application:
```bash
sudo docker build .
sudo docker-compose up -d
sudo docker-compose exec web python3 -m scripts.on_start
sudo docker-compose exec web python3 -m pytest app/tests/
```