Giter Site home page Giter Site logo

longyanjiang / nine-chat-backend Goto Github PK

View Code? Open in Web Editor NEW
57.0 2.0 25.0 119 KB

采用socketio打造的多人实时通讯多房间在线音乐聊天室

Home Page: https://chat.jiangly.com

JavaScript 0.84% TypeScript 99.16%
chat nestjs node socketio websocket

nine-chat-backend's Introduction

2.x版本已经更新

项目图片

项目地址

项目迁移

  • 一台云服务器

  • 一个mysql服务器即可

  • 一个私有文件远程存储的接口

    项目已经提供了测试数据,拉下项目可直接运行,typeorm可自动化建表,无需额外操作,修改数据库地址即可快速迁移完成。

项目启动

  • 项目采用了 orm 操作数据库、所以只需要在config中配置上自己的数据库、就会初始化成功、orm会自动创建所需要的数据库

  • 项目提供了一个测试数据库、可以直接使用、账号密码都有配置、可以自行操作即可

  • 前端部分 cnpm install npm run dev

  • 后端部分 pnpm install npm run start:dev 后端使用了pnpm 如果启动或者安装依赖失败,请将node版本升级到14+ 或者使用**pnpm6 **版本

免责声明

平台音乐数据来源于第三方网站,仅供学习交流使用,请勿用于商业用途。

更新历史

1.x:
	1、普通文字聊天、粘贴图片发送、在线搜索表情包发送等聊天功能
	2、在线搜索歌曲、点歌、切割、收藏歌曲
	3、歌曲实时播放,所有人共享一个实时歌单、一起听歌
	4、实时修改个人信息资料
	5、支持自定义专属背景
	6、快捷键等待你的探索

2.x: 2022051
	1.新增个人私有房间,支持用户创建自己独立的房间了
	2.新增图片或文件发送,可直接粘贴到输入框即可
	3.支持消息引用,点击引用的消息会自动滚动到指定位置
	4.上拉平滑加载更多[修复1.0]上拉抖动问题
	5.新增消息两分钟内可撤回
	6.划分三级权限 超级管理员>房主>普通用户 支持加密房间
	7.新增夜间主题和透明主题,支持部分快捷操作
	8.新增部分快捷键

更多功能等你来提...

项目部分截图

基础技术栈

  • 前端采用 vue + socker-io 未使用ui框架

  • 后端采用 nestjs + typeorm + mysql + socket.io

佛系更新 有需要请 issues提 看到有需要就更新、没有就GG

关于更新

详情功能看预览地址,有bug就留言,就更新,没需要就G了,基础模型功能都有,可以自己二次开发。

有时间也会更新部分功能上去、尽量做到简洁、方便各位移植和部署。

有创意或想法可以提issues,采纳会回复更新。

nine-chat-backend's People

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

nine-chat-backend's Issues

前端运行缺少模块

These dependencies were not found:

* @/components/Chat/ChatHeader in ./node_modules/[email protected]@cache-loader/dist/cjs.js??ref--13-0!./node_modules/[email protected]@babel-loader/lib!./node_modules/[email protected]@cache-loader/dist/cjs.js??ref--1-0!./node_modules/[email protected]@vue-loader/lib??vue-loader-options!./src/views/Chat/index.vue?vue&type=script&lang=js&
* @/components/Chat/ChatLrc in ./node_modules/[email protected]@cache-loader/dist/cjs.js??ref--13-0!./node_modules/[email protected]@babel-loader/lib!./node_modules/[email protected]@cache-loader/dist/cjs.js??ref--1-0!./node_modules/[email protected]@vue-loader/lib??vue-loader-options!./src/views/Chat/index.vue?vue&type=script&lang=js&
* @/components/Chat/ChatMessageFrame in ./node_modules/[email protected]@cache-loader/dist/cjs.js??ref--13-0!./node_modules/[email protected]@babel-loader/lib!./node_modules/[email protected]@cache-loader/dist/cjs.js??ref--1-0!./node_modules/[email protected]@vue-loader/lib??vue-loader-options!./src/views/Chat/index.vue?vue&type=script&lang=js&
* @/components/Chat/ChatProgress in ./node_modules/[email protected]@cache-loader/dist/cjs.js??ref--13-0!./node_modules/[email protected]@babel-loader/lib!./node_modules/[email protected]@cache-loader/dist/cjs.js??ref--1-0!./node_modules/[email protected]@vue-loader/lib??vue-loader-options!./src/views/Chat/index.vue?vue&type=script&lang=js&
* @/components/Chat/MessagePanel in ./node_modules/[email protected]@cache-loader/dist/cjs.js??ref--13-0!./node_modules/[email protected]@babel-loader/lib!./node_modules/[email protected]@cache-loader/dist/cjs.js??ref--1-0!./node_modules/[email protected]@vue-loader/lib??vue-loader-options!./src/views/Chat/index.vue?vue&type=script&lang=js&
* @/components/Chat/MusicPlayer in ./node_modules/[email protected]@cache-loader/dist/cjs.js??ref--13-0!./node_modules/[email protected]@babel-loader/lib!./node_modules/[email protected]@cache-loader/dist/cjs.js??ref--1-0!./node_modules/[email protected]@vue-loader/lib??vue-loader-options!./src/views/Chat/index.vue?vue&type=script&lang=js&
* @/components/PreImg in ./node_modules/[email protected]@cache-loader/dist/cjs.js??ref--13-0!./node_modules/[email protected]@babel-loader/lib!./node_modules/[email protected]@cache-loader/dist/cjs.js??ref--1-0!./node_modules/[email protected]@vue-loader/lib??vue-loader-options!./src/views/Chat/index.vue?vue&type=script&lang=js&

To install them, you can run: npm install --save @/components/Chat/ChatHeader @/components/Chat/ChatLrc @/components/Chat/ChatMessageFrame @/components/Chat/ChatProgress @/components/Chat/MessagePanel @/components/Chat/MusicPlayer @/components/PreImg

第一次运行项目,后端报错500

注册登录第一个账号的时候,http请求为500,在Swagger中进行用户注册测试也不行
后端报错内容:
[Nest] 9560 - 2022/07/10 12:41:30 ERROR [ExceptionsHandler] classTransformer.plainToClass is not a function
TypeError: classTransformer.plainToClass is not a function
at ValidationPipe.transform (E:\Course\Nine-chat-backend\node_modules_@[email protected]@@nestjs\common\pipes\vali
dation.pipe.js:52:39)
at E:\Course\Nine-chat-backend\node_modules_@[email protected]@@nestjs\core\pipes\pipes-consumer.js:16:33
at processTicksAndRejections (node:internal/process/task_queues:96:5)

db file

mysql的数据文件放上来,你把你的数据库公开是有风险的!

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.