[WIP] 该项目处于开发中,功能不完整,欢迎贡献代码。
详细介绍见 Java 实现的后端 MallChat
```shell
git clone https://github.com/gengteng/mallchat cd mallchat
--release
cargo build --no-default-features
cp server.example.toml server.toml
cargo run --no-default-features
```
shuttle 的具体使用方法可在其主页点击 Start Building
按钮查看,需要使用 GitHub 登录。
假设你要部署到
https://$YOUR_PROJECT_NAME.shuttleapp.rs/
。
```shell
git clone https://github.com/gengteng/mallchat cd mallchat
cp Secrets.example.toml Secrets.toml
cargo shuttle project start --name $YOURPROJECTNAME
cargo shuttle deploy --name $YOURPROJECTNAME
```
| 技术 | 说明 | 官网 | |:------------:|-----------------|----------------------------------------------------------------------| | Axum | Web 框架 | https://github.com/tokio-rs/axum | | Tokio | 异步运行时 | https://tokio.rs | | config | 配置管理 | | | SeaORM | ORM 框架 | https://www.sea-ql.org/SeaORM/ | | jsonwebtoken | JWT 库 | | | serde | 序列化/反序列化框架 | https://serde.rs | | utoipa | swagger-ui 生成框架 | | | validator | 合法性校验框架 | | | reqwest | HTTP 客户端 | | | parking_lot | 高性能锁实现 | | | shuttle | 云部署平台 | https://www.shuttle.rs |
Apache-2.0