An open API service indexing awesome lists of open source software.

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

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/
```