Code Monkey home page Code Monkey logo

webim's Introduction

#WebIM

##介绍

这是一个web端即时通讯,目前尚处于开发过程中,主体功能已经完成,但是一些细节功能尚需优化和补充。 目前该项目已经部署在阿里云,部署方案采用Nginx+supervisor+daphne+gunicorn, 如需体验请访问https://iwantme.cn

##功能介绍

  1. 私聊
  2. 群聊
  3. 发送图片和文件
  4. 搜索并添加好友
  5. 用户注册及登录
  6. 用户资料修改
  7. 限制文件上传的大小及类型

##技术栈

后端

  1. Django
  2. Channels
  3. Nginx
  4. Redis
  5. MySQL
  6. Docker

前端

由于前端框架需要获得授权,所以此开源项目并不包括前端代码

  1. LayIM(已获得授权)
  2. LayUI(开源)

##待实现功能

  1. 客服
  2. 聊天机器人

##部署准备

###安装依赖

  1. python3.7.4
  2. pip install -r requirements.txt

###数据库(docker container)

  1. MySQL

运行MySQL容器

docker run --name docker-mysql \
-p 3306:3306 \
-e MYSQL_ROOT_PASSWORD=topsecret \
-d mysql:5.7

进入MySQL容器

docker exec -it docker-mysql mysql -uroot -p
create database webim default character set utf8 collate utf8_general_ci;
  1. 迁移数据库
python manage.py makemigrations chat
python manage.py migrate chat
  1. Redis
docker run --name docker-redis -p 6379:6379 -d redis

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.