/news-api-golang

learn clean arch on go

Primary LanguageGo

News API

This repository is intended to learn how to implement Clean Architecture in Go & also for assignment purposes.

Docs

See here.

How to develop & run

  • Go get this repo

    go get gitlab.com/99ridho/news-api
    
  • Make the database

  • Change the config.json file to your own setting

  • Run the migration using goose.

  • Install dependency using dep

    dep ensure
    
  • Then

    go run main.go
    

    at this directory.

Testing

go test ./...