https://github.com/twtrubiks/chat-room
Chat-Room Use Python Socket.IO
https://github.com/twtrubiks/chat-room
chat-room deploy flask flask-login gunicorn-web-server heroku python python-socketio
Last synced: about 1 year ago
JSON representation
Chat-Room Use Python Socket.IO
- Host: GitHub
- URL: https://github.com/twtrubiks/chat-room
- Owner: twtrubiks
- Created: 2017-01-08T05:12:47.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-24T16:18:05.000Z (about 9 years ago)
- Last Synced: 2025-04-15T12:12:22.927Z (about 1 year ago)
- Topics: chat-room, deploy, flask, flask-login, gunicorn-web-server, heroku, python, python-socketio
- Language: CSS
- Size: 1.25 MB
- Stars: 25
- Watchers: 3
- Forks: 17
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# chat-room
Chat-Room Use Python Socket.IO
* [Youtube Demo](https://youtu.be/l53-K03hIXs)
* [線上 Demo](http://chatflask.herokuapp.com/)
P.S
目前佈署在 [heroku](https://dashboard.heroku.com/) 上,因為免費版有24小時一定要休息6小時的規定,所以比較慢請多多包涵。
Heroku 上 database 是使用 Heroku Postgres,本地端測試可以直接使用SQLITE,
如果 server (demo) 自動重啟,圖片可以會遺失。
聊天室,相信大家一定經常看到,今天教你使用 [python-socketio](https://github.com/miguelgrinberg/python-socketio) 打造一個簡易的聊天室。
使用 Python [Flask](http://flask.pocoo.org/) 搭配 [python-socketio](https://github.com/miguelgrinberg/python-socketio) 建立聊天室
## 特色
* [python-socketio](https://github.com/miguelgrinberg/python-socketio) 即時聊天室。
* 透過 [flask-login](https://github.com/maxcountryman/flask-login) 實現簡易登入、註冊。
## 安裝套件
確定電腦有安裝 [Python](https://www.python.org/) 之後
請在 cmd (命令提示字元) 輸入以下指令
``` cmd
pip install -r requirements.txt
```
## 執行畫面
簡單的登入、註冊


聊天室

點選照片下方的齒輪,可以上傳自己的照片

## db - SQLite



## Deploy
佈署空間 - [heroku](https://dashboard.heroku.com/)
請參考 [flask-socketio gunicorn-web-server](https://flask-socketio.readthedocs.io/en/latest/#gunicorn-web-server)
建立一個名稱為 **Procfile** 的檔案
在檔案內輸入
```cmd
web: gunicorn -k eventlet app:app
```
heroku Deployment method : Heroku-Git , GitHub , Dropbox
## 執行環境
* Python 3.4.3
## Reference
* [python-socketio](https://github.com/miguelgrinberg/python-socketio)
* [flask-login](https://github.com/maxcountryman/flask-login)
* [pillow](https://pillow.readthedocs.io/en/4.0.x/)
* [croppic](http://www.croppic.net/)
* [聊天室版型](http://www.bypeople.com/minimal-css-chat-ui/)
## License
MIT license