Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ZhangHanDong/actix-workshop-rustconasia2019
RustConAsia 2019大会workshop
https://github.com/ZhangHanDong/actix-workshop-rustconasia2019
Last synced: 7 days ago
JSON representation
RustConAsia 2019大会workshop
- Host: GitHub
- URL: https://github.com/ZhangHanDong/actix-workshop-rustconasia2019
- Owner: ZhangHanDong
- Created: 2019-04-22T02:45:53.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-04-22T15:55:15.000Z (over 5 years ago)
- Last Synced: 2024-07-10T23:25:08.009Z (4 months ago)
- Language: Rust
- Size: 172 KB
- Stars: 66
- Watchers: 4
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RustConAsia 2019大会workshop
### 环境准备
- Rust 最新稳定版
- Dockerwindows可以装docker for win
对于Mac环境,使用
- Docker Desktop for Mac
或者
需要使用docker-machine配置好docker
```
// 确保已安装VirtualBox
$ brew cask install virtualbox;
$ docker-machine create --driver virtualbox default
$ docker-machine env default
$ eval $(docker-machine env default)
```安装好postgresql的docker镜像,,或者使用Sqlite/Mysql
```
$ docker pull postgres
$ docker run --name postgres -e POSTGRES_PASSWORD=123456 -d postgres
```配置Cargo 镜像
```
$ sudo vi ~/.cargo/config
``````rust
[source.crates-io]
registry = "https://github.com/rust-lang/crates.io-index"
replace-with = 'ustc'
[source.ustc]
registry = "http://mirrors.ustc.edu.cn/crates.io-index"
```安装好diesel-cli
```rust
$ cargo install diesel_cli --no-default-features --features postgres
```### 内容导读
- [概念导读](./concept_to_guide/RustConAsia2019WorkShop.pdf)
- [现场代码](./workshop-todo)Workshop流程说明:
- actor模型介绍
- actix重点概念介绍
- actix-web重点概念介绍
- Diesel重点概念介绍
- 现场todo 接口实现,跑通接口逻辑
- 增加Dockerfile方便打包为一个独立的镜像