changed mind, back to hello-{lang} for better naming of tutorial

This commit is contained in:
Chad Arimura
2017-06-05 14:27:30 -07:00
parent fea5fbf7b0
commit c8fab6f224
7 changed files with 63 additions and 54 deletions

View File

@@ -34,7 +34,7 @@ fn main() {
```sh
# Initialize your function creating a func.yaml file
fn init <DOCKERHUB_USERNAME>/rust
fn init <DOCKERHUB_USERNAME>/hello-rust
# Test your function. This will run inside a container exactly how it will on the server
fn run
@@ -49,15 +49,15 @@ fn deploy myapp
### Now call your function:
```sh
curl http://localhost:8080/r/myapp/rust
curl http://localhost:8080/r/myapp/hello-rust
```
Or call from a browser: [http://localhost:8080/r/myapp/rust](http://localhost:8080/r/myapp/rust)
Or call from a browser: [http://localhost:8080/r/myapp/hello-rust](http://localhost:8080/r/myapp/hello-rust)
And now with the JSON input:
```sh
curl -H "Content-Type: application/json" -X POST -d @sample.payload.json http://localhost:8080/r/myapp/rust
curl -H "Content-Type: application/json" -X POST -d @sample.payload.json http://localhost:8080/r/myapp/hello-rust
```
That's it!