Anonymous single-use chatrooms using Flask and SocketIO
This project is a Flask web application that allows annonymous users to create and join chat rooms. After creating a room, a user can distribute the link so that others can join the same room. If a room is empty, it is automatically deleted. To increase security, only rooms codes are stored in the database, not any of the messages, which are rendered using markdown client-side.
To get a local copy up and running follow these simple steps.
You must have Python 3.6 or higher installed.
- Clone the repo and move into it
git clone https://github.com/BattleMage0231/anonymous-chat.git cd anonymous-chat - Install the required packages
pip3 install -r requirements.txt
- Set up the environmental variables and database
export FLASK_APP=run.py export AC_SECRET="SECRET KEY" export AC_DATABASE_URI="DATABASE URI" python3 init.py # create database
- For local use, run the application using the command line
flask run
For production uses, you should use an existing service to run the application. Do not expose it in debug mode.
Distributed under the MIT License. See LICENSE for more information.
Leyang Zou - leyang.zou@student.tdsb.on.ca
Project Link: https://github.com/BattleMage0231/anonymous-chat