Skip to content

This is a simple demonstration of Server-Sent Events (SSE) using FastAPI. It provides a minimalistic frontend that displays real-time updates from the server in a table format.

License

Notifications You must be signed in to change notification settings

AndreyKlychnikov/fastapi-sse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Server-Sent Events (SSE) Demo with FastAPI

This is a simple demonstration of Server-Sent Events (SSE) using FastAPI. It provides a minimalistic frontend that displays real-time updates from the server in a table format.

Table of Contents

Overview

Server-Sent Events (SSE) is a web technology that allows servers to push real-time updates to web clients over a single HTTP connection. In this project, we use FastAPI to create a simple SSE server and provide a frontend for visualizing the real-time updates.

Installation

  1. Clone the repository to your local machine:

    git clone https://github.com/AndreyKlychnikov/fastapi-sse.git
  2. Navigate to the project directory:

    cd sse-fastapi-demo
  3. Install the required Python dependencies using poetry:

    poetry install

Usage

  1. Start the FastAPI application:

    uvicorn main:app --reload

    The application will be accessible at http://localhost:8000.

  2. Open a web browser and visit http://localhost:8000 to see the SSE demo in action. The page will display real-time updates in a table format.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

This is a simple demonstration of Server-Sent Events (SSE) using FastAPI. It provides a minimalistic frontend that displays real-time updates from the server in a table format.

Topics

Resources

License

Stars

Watchers

Forks