# 简单的im-chat系统 **Repository Path**: loveruby/simple-im-chat-system ## Basic Information - **Project Name**: 简单的im-chat系统 - **Description**: 使用flutter nodejs mongodb 做的一套简单的即时通讯功能 - **Primary Language**: Dart - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2022-06-17 - **Last Updated**: 2024-08-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: Flutter ## README **启动方式** - server 文件夹是服务端 - client 文件夹是客户端 1.启动服务端: - - 1.1 安装node.js v14.18.0+ - 1.2 安装mongodb v4+ - 1.3 执行npm install安装需要的库 - 1.4 然后尝试执行npm run start,若无法找到ts-node,需要安装一下ts-node 2.启动客户端: - - 1.1 安装flutter(根据官网方式进行安装) - 1.2 安装android sdk 或者是android studio - 1.3 安装完成后在client文件夹下执行flutter run,看需要启动在什么设备上,优先考虑启动在android设备。或windows版本,web是不支持dart:io的,启动web需要去掉相关引用 - 1.4 终极解决方法:重新创建一个flutter项目吧lib文件夹的所有源代码复制进新项目里面后安装需要的依赖: ``` dependencies: flutter: sdk: flutter # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. cupertino_icons: ^1.0.2 http: ^0.13.4 shared_preferences: ^2.0.15 web_socket_channel: ^2.2.0 provider: ^6.0.3 ```