rociosantos / gokit-example

Example of API using gokit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GO-KIT EXAMPLE

API to ilustrate a basic usage for go-kit. Based in the tutorial from https://github.com/tensor-programming/go-kit-tutorial

RUN

First run localstack for dynamoDB service

docker-compose up

If the table does not exist, just go ahead and create it

aws --endpoint-url=http://localhost:4569 dynamodb create-table \
    --table-name users \
    --attribute-definitions AttributeName=UserId,AttributeType=S \
    --key-schema AttributeName=UserId,KeyType=HASH \
    --provisioned-throughput ReadCapacityUnits=50,WriteCapacityUnits=50 \
    --region us-east-1

Then just

go run main.go

About

Example of API using gokit


Languages

Language:Go 100.0%