Skip to content

SaqibHussain44/clean-architecture-go

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Clean Architecture sample

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 95.8%
  • Makefile 4.2%