1
0
mirror of https://github.com/actix/examples synced 2025-01-22 14:05:55 +01:00

Merge pull request #11 from kellytk/master

Correct paths
This commit is contained in:
Nikolay Kim 2018-05-20 18:44:02 -07:00 committed by GitHub
commit 2d97219195
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 12 additions and 12 deletions

View File

@ -5,7 +5,7 @@
### server
```bash
cd actix-web/examples/basics
cd examples/basics
cargo run
# Started http server: 127.0.0.1:8080
```

View File

@ -8,7 +8,7 @@ Diesel's `Getting Started` guide using SQLite for Actix web
```bash
cargo install diesel_cli --no-default-features --features sqlite
cd actix-web/examples/diesel
cd examples/diesel
echo "DATABASE_URL=file:test.db" > .env
diesel migration run
```
@ -18,7 +18,7 @@ diesel migration run
```bash
# if ubuntu : sudo apt-get install libsqlite3-dev
# if fedora : sudo dnf install libsqlite3x-devel
cd actix-web/examples/diesel
cd examples/diesel
cargo run (or ``cargo watch -x run``)
# Started http server: 127.0.0.1:8080
```
@ -40,4 +40,4 @@ sqlite> select * from users;
## Postgresql
You will also find another complete example of diesel+postgresql on [https://github.com/TechEmpower/FrameworkBenchmarks/tree/master/frameworks/Rust/actix](https://github.com/TechEmpower/FrameworkBenchmarks/tree/master/frameworks/Rust/actix)
You will also find another complete example of diesel+postgresql on [https://github.com/TechEmpower/FrameworkBenchmarks/tree/master/frameworks/Rust/actix](https://github.com/TechEmpower/FrameworkBenchmarks/tree/master/frameworks/Rust/actix)

View File

@ -7,7 +7,7 @@ Json's `Getting Started` guide using json (serde-json or json-rust) for Actix we
### server
```bash
cd actix-web/examples/json
cd examples/json
cargo run
# Started http server: 127.0.0.1:8080
```

View File

@ -5,7 +5,7 @@ Juniper integration for Actix web
### server
```bash
cd actix-web/examples/juniper
cd examples/juniper
cargo run (or ``cargo watch -x run``)
# Started http server: 127.0.0.1:8080
```

View File

@ -7,7 +7,7 @@ Multipart's `Getting Started` guide for Actix web
### server
```bash
cd actix-web/examples/multipart
cd examples/multipart
cargo run (or ``cargo watch -x run``)
# Started http server: 127.0.0.1:8080
```

View File

@ -5,7 +5,7 @@
### server
```bash
cd actix-web/examples/state
cd examples/state
cargo run
# Started http server: 127.0.0.1:8080
```

View File

@ -7,7 +7,7 @@ Minimal example of using the template [tera](https://github.com/Keats/tera) that
### server
```bash
cd actix-web/examples/template_tera
cd examples/template_tera
cargo run (or ``cargo watch -x run``)
# Started http server: 127.0.0.1:8080
```

View File

@ -5,7 +5,7 @@
### server
```bash
cd actix-web/examples/tls
cd examples/tls
cargo run (or ``cargo watch -x run``)
# Started http server: 127.0.0.1:8443
```

View File

@ -7,7 +7,7 @@ Simple echo websocket server.
### server
```bash
cd actix-web/examples/websocket
cd examples/websocket
cargo run
# Started http server: 127.0.0.1:8080
```

View File

@ -1,6 +1,6 @@
//! Simple echo websocket server.
//! Open `http://localhost:8080/ws/index.html` in browser
//! or [python console client](https://github.com/actix/actix-web/blob/master/examples/websocket-client.py)
//! or [python console client](https://github.com/actix/examples/blob/master/websocket/websocket-client.py)
//! could be used for testing.
#![allow(unused_variables)]