IhsanDevs / PythonSocketChat

Simple python chat app using Flask & Socket.IO

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Logo

Python Socket Chat

Simple python chat app using Flask & Socket.IO

Demo

Too see the demo, you can visit here

Features

  • Light/dark mode toggle
  • Public chat
  • Persistant account
  • Delete account
  • Update account
  • Auto change author message when account Update
  • Notify status to all user (User updated, user is online, user if offline, deleted user account, joined new user)
  • Single Page Application (SPA)? SURE!
  • Delete message(s)
  • Create multi room
  • Chat with personal account
  • Send message with image(s)
  • Send file
  • Reply message
  • Message link preview

Requirements

  1. Python. Recommended version is 3.8. You can install multi python version using pyenv.

Installation

Install Python Socket Chat :

  1. clone this repository
git clone https://github.com/IhsanDevs/PythonSocketChat

cd PythonSocketChat
  1. Install all PIP dependencies
pip install -r requirements.txt
  1. Finally, run the app!
python app.py

Deployment

For now, i'm just testing it in my local computer. I have test to deploy and run in Repl.it and pytonanywhere but this project doesn't work. Because they're doesn't support websocket server.

On Heroku? My mind that doesn't work too. because Heroku doesn't support persistant storage. This project use SQLite for manage data like chat histories and users data.

Maybe you can deploy this project with your own VPS server. Just run the project in background service using PM2 and reverse the port using NGINX to your domain.

Contributing

Contributions are always welcome!

About

Simple python chat app using Flask & Socket.IO


Languages

Language:CSS 94.7%Language:JavaScript 2.1%Language:Jinja 2.0%Language:Python 1.2%