Skip to content
Clean Architecture sample
Go Makefile
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
api add find and remove handlers Sep 25, 2018
cmd fix: migration should use config Jan 23, 2019
config Use build tags to store config Jun 22, 2018
migrations fix: migration should use config Jan 23, 2019
pkg Add extra tests Sep 25, 2018
.gitignore
.travis.yml Fix travis config Nov 20, 2018
Makefile Add support to go modules; fix errors in Makefile Nov 20, 2018
README.md Status image May 17, 2018
docker-compose.yml First version May 17, 2018
go.mod fix: remove unused dependencis Jan 23, 2019
go.sum fix: remove unused dependencis Jan 23, 2019

README.md

Clean Architecture in Go

Build Status

Clean Architecture sample

Post

https://medium.com/@eminetto/clean-architecture-using-golang-b63587aa5e3f

Build

make

Run tests

make test

API requests

Add a bookmark

curl -X "POST" "http://localhost:8080/v1/bookmark" \
     -H 'Content-Type: application/json' \
     -H 'Accept: application/json' \
     -d $'{
  "tags": [
    "git",
    "social"
  ],
  "name": "Github",
  "description": "Github site",
  "link": "http://github.com"
}'

Search a bookmark

curl "http://localhost:8080/v1/bookmark?name=github" \
     -H 'Content-Type: application/json' \
     -H 'Accept: application/json'

Show all bookmarks

curl "http://localhost:8080/v1/bookmark" \
     -H 'Content-Type: application/json' \
     -H 'Accept: application/json'

CMD

Search for a bookmark

./bin/search github
You can’t perform that action at this time.