https://github.com/chanmo/django-chat
django chat app
https://github.com/chanmo/django-chat
Last synced: about 1 year ago
JSON representation
django chat app
- Host: GitHub
- URL: https://github.com/chanmo/django-chat
- Owner: ChanMo
- Created: 2020-08-03T05:52:56.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-03T06:00:20.000Z (almost 6 years ago)
- Last Synced: 2025-03-05T17:49:11.462Z (over 1 year ago)
- Language: JavaScript
- Size: 14.6 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Django Chat
基于Django的通用聊天模块
## Requirements
* django3+
* djangorestframework
* django-attachments
* channels
* webpack(打包静态文件)
* storybook(可选)
## Tutorial
### update `settings.py`
```
INSTALLED_APPS = [
...
'chat'
]
```
### update `urls.py`
```
urlpatterns = [
...
path('api/chat/', include('chat.apis')),
path('chat/', include('chat.urls')),
]
```
### migrations
```
$ python manage.py makemigrations chat
$ python manage.py migrate
```
### update `webpack.js`
```
module.exports = {
entry: {
...
chat: './backend/chat/components/chat.js',
room: './backend/chat/components/room.js'
},
...
}
```
### build
```
$ npm run build
```
## Next
* [x] 图片支持
* [x] 常用语
* [ ] 表情支持
* [ ] 用户信息
* [ ] 语音信息