Skip to content

a multi-user single-room real-time web chat application built with aiohttp and asyncio

Notifications You must be signed in to change notification settings

kimjinmyeong/webchat-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web Chat App

This is a simple example of a multi-user single-room real-time web chat application built with aiohttp and asyncio. It allows multiple users to join a chat room and exchange messages in real-time.

ScreenShots

이미지 이미지

Features

  • Real-time communication using WebSocket
  • Single chat room for all users

Requirements

  • Python 3.7 or higher
  • aiohttp
  • asyncio
  • redis-py
  • docker

Installation

  1. Clone the repository:
git clone https://github.com/kimjinmyeong/webchat-app.git
  1. Change into the project directory:
cd webchat-app
  1. Build the Docker image:
docker compose build

Usage

  1. Run the application using Docker Compose:
docker compose up
  1. Open your web browser and visit http://localhost:8080 to access the chat application.

  2. Enter your username and start chatting!

Project Structure

The project consists of the following files:

  • server.py: The main server file that handles HTTP requests, WebSocket connections, and message broadcasting.
  • templates/index.html: The HTML template for the home page.
  • templates/error.html: The HTML template for the error page.
  • templates/chat.html: The HTML template for the chat room.

About

a multi-user single-room real-time web chat application built with aiohttp and asyncio

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published