Coder Social home page Coder Social logo

actix-workshop-rustconasia2019's Introduction

RustConAsia 2019大会workshop

环境准备

  • Rust 最新稳定版
  • Docker

windows可以装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
[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

$ cargo install diesel_cli --no-default-features --features postgres

内容导读

Workshop流程说明:

  • actor模型介绍
  • actix重点概念介绍
  • actix-web重点概念介绍
  • Diesel重点概念介绍
  • 现场todo 接口实现,跑通接口逻辑
  • 增加Dockerfile方便打包为一个独立的镜像

actix-workshop-rustconasia2019's People

Contributors

zhanghandong avatar

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.