update tag readme

This commit is contained in:
Asim Aslam
2021-04-29 11:49:33 +01:00
parent 54db57b09f
commit f5f67bc614

View File

@@ -1,64 +1,3 @@
Tag any resource by savin a tag associated with their ID in the tag service.
# Tag Service
## Query tags
```
micro tags list --type=post-tag
```
Generated with
```
micro new --namespace=go.micro --type=service tag
```
## Getting Started
- [Tag Service](#tag-service)
- [Query tags](#query-tags)
- [Getting Started](#getting-started)
- [Configuration](#configuration)
- [Dependencies](#dependencies)
- [Usage](#usage)
## Configuration
- FQDN: go.micro.service.tag
- Type: service
- Alias: tag
## Dependencies
Micro services depend on service discovery. The default is multicast DNS, a zeroconf system.
In the event you need a resilient multi-host setup we recommend etcd.
```
# install etcd
brew install etcd
# run etcd
etcd
```
## Usage
A Makefile is included for convenience
Build the binary
```
make build
```
Run the service
```
./tag-service
```
Build a docker image
```
make docker
```
Tag any resource by saving a tag associated with their respective ID