Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
asim committed Jun 30, 2022
1 parent a0317c3 commit b28a4f4
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.md
Expand Up @@ -172,6 +172,8 @@ curl "http://localhost:8080/helloworld?name=John"

### Write a service client

A service client is used within another service and must be run by micro

```go
package main

Expand Down Expand Up @@ -216,13 +218,15 @@ micro run .

### Write an api client

An api client is an external app or client which makes requests through the micro api

Get a token
```
export TOKEN=`micro user token`
```

Call helloworld
```
```go
package main

import (
Expand Down Expand Up @@ -262,6 +266,12 @@ func main() {
}
```

Run it

```
go run main.go
```

For more see the [getting started](https://micro.dev/getting-started) guide.

## Docs
Expand Down

0 comments on commit b28a4f4

Please sign in to comment.