Skip to content
This repository has been archived by the owner on Apr 7, 2023. It is now read-only.

mowtwo/actix_chat_web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

actix_chat_web

这是一个基于 Rust actix 后端,petite-vue 前端开发的简易在线聊天室

下载

git clone https://github.com/mowtwo/actix_chat_web

注意

本项目有依赖到 cargo-watch 实现代码热重启,所以有需要请自行安装,下面运行也是根据 cargo-watch 来编写的运行脚本,若无需求,可以直接使用cargo run或者cargo build

运行环境

  • rust@1.6
  • tsc@4.4.4
  • cargo-watch
  • Windows

TODO

  • 实现单聊
  • 实现群聊
  • 实现基于本地服务器

运行

由于网页中的 js 实际上是有 TypeScript 编译得来,因此启动前可以先将 ts 代码编译

./watch_ts.bat

然后直接启动后端服务即可

./watch.bat