Skip to content

Commit d65de2d

Browse files
committed
Show example usage
Signed-off-by: Alex Ellis <[email protected]>
1 parent 22f647f commit d65de2d

File tree

1 file changed

+38
-1
lines changed

1 file changed

+38
-1
lines changed

README.md

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,44 @@ This provider was created for integration testing and as a first-class example o
88

99
## Getting started
1010

11-
Coming soon..
11+
In one terminal, build and start the provider:
12+
13+
```sh
14+
export GOPATH=$HOME/go
15+
go get -u github.com/openfaas-incubator/faas-memory
16+
cd $GOPATH/go/src/github.com/openfaas-incubator/faas-memory
17+
18+
make build-local
19+
20+
port=8083 ./faas-provider
21+
```
22+
23+
In another use the CLI with it:
24+
25+
```sh
26+
$ export GOPATH=$HOME/go
27+
$ cd $GOPATH/go/src/github.com/openfaas-incubator/faas-memory
28+
29+
$ export OPENFAAS_URL=127.0.0.1:8083
30+
31+
$ faas-cli list
32+
33+
Function Invocations Replicas
34+
35+
$ faas-cli store deploy figlet
36+
37+
WARNING! Communication is not secure, please consider using HTTPS. Letsencrypt.org offers free SSL/TLS certificates.
38+
39+
Deployed. 200 OK.
40+
URL: http://127.0.0.1:8083/function/figlet
41+
42+
$ faas-cli list
43+
44+
Function Invocations Replicas
45+
figlet 0 1
46+
```
47+
48+
More coming soon..
1249

1350
## Acknowledgements
1451

0 commit comments

Comments
 (0)