Skip to content

jyotirmay-exe/flask-ChatHub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web Chat-Hub Application built on Flask

An web-based chat application built with Flask, enabling users to exchange text messages anonymously within a "chat room".

Users can create new rooms or join existing ones to communicate with others in the same room.

Check out the project Live : Hosted on Render

https://flask-chathub.onrender.com/

Setup

Recommended Python 3.6 or above.

  • Set up python virtual environment:
python3 -m venv .venv
  • Activate the virtual environment:
source .venv/bin/activate
  • Installing dependencies:
python3 -m pip install -r requirements.txt 

Execution

With the virtual environment activated, run the following commands.

  • To run locally:
flask run
  • To run on the network:
flask run --host "0.0.0.0"

Features

  • Completely anonymous
  • Real-time messaging
  • Auto-Generated Room IDs
  • Dynamic room creation and deletion without server restart
  • Temporary rooms: Inactive/Vacant rooms are periodically deleted
  • Users list broadcast
  • Responsive design for easy viewing on all devices

Screens

pc
pc
phone pc

Resources

// TO-DO:

  • Standardize front-end
  • Implement Room Creation/Joining
  • Implement WebSocket for individual Rooms
  • Connected users list
  • Session based auth (probably)
  • Message history (probably)
  • Deploy if free