This is the Flask backend for the Temporary Group Chat App.
Handles group creation, messaging, and auto-deletion of messages after 10 minutes.
| Category | Technology |
|---|---|
| Backend | Flask (Python) |
| Database | Redis |
| Hosting | Koyeb |
| Redis Client | redis |
- 🔑 Join/Leave groups using passwords.
- 🗨️ Send and receive messages.
- 🕑 Messages automatically delete after 10 minutes.
- 🚀 Fast backend with Redis caching.
- 🔒 Secure, environment variable-based config.
git clone https://github.com/aarontoms/Chat-app-backend.git
cd group-chat-backendpip install -r requirements.txtCreate a .env file in the project root:
REDIS_HOST = <'redis-host-url'>
REDIS_PORT = <your_redis_port>
REDIS_PASSWORD = <redis_password>python app.pyThe server will start on http://localhost:5000 by default.
- Redis must be running and reachable for message expiry to work.
- Environment variables are mandatory for the app to run.
| Method | Endpoint | Description |
|---|---|---|
| POST | /create |
Create a group |
| POST | /postpassword |
Join a group |
| POST | /send |
Send a message to a group |
| GET | /getmessages |
Get all messages in a group |
/backend
├── app.py
├── requirements.txt
└── .env (not committed)
Feel free to fork, open issues, and submit PRs!