Skip to content
Clean Architecture sample
Go Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
api
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 feat: mocks Dec 19, 2019
.gitignore ignore vscode config Sep 25, 2018
.travis.yml Fix travis config Nov 20, 2018
Makefile feat: mocks Dec 19, 2019
README.md
docker-compose.yml First version May 17, 2018
go.mod feat: mocks Dec 19, 2019
go.sum feat: mocks Dec 19, 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.