Skip to content

rociosantos/gokit-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages