1
0
mirror of https://github.com/actix/examples synced 2025-02-02 09:39:03 +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 ### server
```bash ```bash
cd actix-web/examples/basics cd examples/basics
cargo run cargo run
# Started http server: 127.0.0.1:8080 # 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 ```bash
cargo install diesel_cli --no-default-features --features sqlite cargo install diesel_cli --no-default-features --features sqlite
cd actix-web/examples/diesel cd examples/diesel
echo "DATABASE_URL=file:test.db" > .env echo "DATABASE_URL=file:test.db" > .env
diesel migration run diesel migration run
``` ```
@ -18,7 +18,7 @@ diesel migration run
```bash ```bash
# if ubuntu : sudo apt-get install libsqlite3-dev # if ubuntu : sudo apt-get install libsqlite3-dev
# if fedora : sudo dnf install libsqlite3x-devel # if fedora : sudo dnf install libsqlite3x-devel
cd actix-web/examples/diesel cd examples/diesel
cargo run (or ``cargo watch -x run``) cargo run (or ``cargo watch -x run``)
# Started http server: 127.0.0.1:8080 # Started http server: 127.0.0.1:8080
``` ```

View File

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

View File

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

View File

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

View File

@ -5,7 +5,7 @@
### server ### server
```bash ```bash
cd actix-web/examples/state cd examples/state
cargo run cargo run
# Started http server: 127.0.0.1:8080 # 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 ### server
```bash ```bash
cd actix-web/examples/template_tera cd examples/template_tera
cargo run (or ``cargo watch -x run``) cargo run (or ``cargo watch -x run``)
# Started http server: 127.0.0.1:8080 # Started http server: 127.0.0.1:8080
``` ```

View File

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

View File

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

View File

@ -1,6 +1,6 @@
//! Simple echo websocket server. //! Simple echo websocket server.
//! Open `http://localhost:8080/ws/index.html` in browser //! 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. //! could be used for testing.
#![allow(unused_variables)] #![allow(unused_variables)]