Adding tutorial prerequisites and correcting routes (#423)

* Adding tutorial prerequisites and correcting routes

* Correcting Quickstart link in README.md

* Minor edit to trigger pull request
This commit is contained in:
W Brian Leonard
2018-01-02 11:49:50 -05:00
committed by Reed Allman
parent 250bc645f9
commit 425bcc0954
7 changed files with 30 additions and 18 deletions

View File

@@ -22,15 +22,15 @@ fn deploy --app myapp
### Now call your function:
```sh
curl http://localhost:8080/r/myapp/hello-node
curl http://localhost:8080/r/myapp/node
```
Or call from a browser: [http://localhost:8080/r/myapp/hello-node](http://localhost:8080/r/myapp/hello-node)
Or call from a browser: [http://localhost:8080/r/myapp/node](http://localhost:8080/r/myapp/node)
And now with the JSON input:
```sh
curl -H "Content-Type: application/json" -X POST -d @sample.payload.json http://localhost:8080/r/myapp/hello-node
curl -H "Content-Type: application/json" -X POST -d @sample.payload.json http://localhost:8080/r/myapp/node
```
That's it! Our `fn deploy` packaged our function and sent it to the Fn server. Try editing `func.js`