Giter Club home page Giter Club logo

cchat's Introduction

Cchat

flask+vue+socketio实时在线聊天web系统

    之前学习socketio部分,一直找不到好的教程,git上面也都是些小demo,不能放入实际生产环境中运行,于是自己就写了这个项目,里面还有很多bug,有一部分功能待完善,主体业务功能已经实现,希望能够对大家学习socketio部分有所帮助,大家如果有什么好的建议可以提给我.共同进步!
个人qq:907031027


项目展示


前端技术使用

- vue
- vuex
- vue-socketio
- vue-cookies
- vant
- vue-router
- vue-cli3
- axios

后端技术使用

- flask
- flask-socketio
- flask-sqlalchemy
- flask-mail
- flask-restful
- flask-wtform
- celery

关系型数据库选型

- mysql

非关系型数据库选型

- redis

项目运行

后台部分:

cd c_chat_server
pip3 install -r requirements.txt #python安装依赖

打开manage.py文件

if __name__ == '__main__':
    socketIo.run(app,host='0.0.0.0',debug=True)
    #app.run()
    #manage.run()

修改为

if __name__ == '__main__':
    #socketIo.run(app,host='0.0.0.0',debug=True)
    #app.run()
    manage.run()
python manage.py db migrate
python manage.py upgrade
#再将manage.py--#socketIo.run(app,host='0.0.0.0',debug=True)的注释打开
python manage.py

前端部分:

cd c_chat
npm install
npm run serve

cchat's People

Contributors

primarycy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.