Git Product home page Git Product logo

chat-room's Introduction

chat-room

Chat-Room Use Python Socket.IO

P.S 目前佈署在 heroku 上,因為免費版有24小時一定要休息6小時的規定,所以比較慢請多多包涵。

Heroku 上 database 是使用 Heroku Postgres,本地端測試可以直接使用SQLITE,

如果 server (demo) 自動重啟,圖片可以會遺失。

聊天室,相信大家一定經常看到,今天教你使用 python-socketio 打造一個簡易的聊天室。

使用 Python Flask 搭配 python-socketio 建立聊天室

特色

安裝套件

確定電腦有安裝 Python 之後

請在 cmd (命令提示字元) 輸入以下指令

pip install -r requirements.txt

執行畫面

簡單的登入、註冊 alt tag alt tag

聊天室

alt tag

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

db - SQLite

alt tag alt tag alt tag

Deploy

佈署空間 - heroku

請參考 flask-socketio gunicorn-web-server

建立一個名稱為 Procfile 的檔案

在檔案內輸入

web: gunicorn -k eventlet app:app

heroku Deployment method : Heroku-Git , GitHub , Dropbox

執行環境

  • Python 3.4.3

Reference

License

MIT license

chat-room's People

Contributors

twtrubiks avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.