Notes Service (#12)

* Notes Service

* go mod tidy

* go mod tidy
This commit is contained in:
ben-toogood
2020-10-16 13:13:18 +01:00
committed by GitHub
parent 2083802ed5
commit 25993c656a
7 changed files with 929 additions and 61 deletions

25
notes/README.md Normal file
View File

@@ -0,0 +1,25 @@
# Notes Service
Notes service is an RPC service which offers CRUD for notes. It demonstrates usage of the store, errors and logger pacakges. Example usage:
```bash
> micro notes create --title="HelloWorld" --text="MyFirstNote"
{
"id": "6d3fa5c0-6e79-4418-a72a-c1650efb65d2"
}
> micro notes update --id=6d3fa5c0-6e79-4418-a72a-c1650efb65d2 --title="HelloWorld" --text="MyFirstNote (v2)"
{}
> micro notes list
{
"notes": [
{
"id": "6d3fa5c0-6e79-4418-a72a-c1650efb65d2",
"created": "1602849877",
"title": "HelloWorld",
"text": "MyFirstNote (v2)"
}
]
}
> micro notes delete --id=6d3fa5c0-6e79-4418-a72a-c1650efb65d2
{}
```