mxschmitt / golang-url-shortener

URL Shortener written in Golang using Bolt DB or Redis. Provides features such as Deletion, Expiration, OAuth and is of course Dockerizable.
https://so.sh0rt.cat
MIT License
283 stars 84 forks source link

Wouldn't it be better if the application was following hexagonal architecture? #135

Open lakshaytalkstomachines opened 3 years ago

lakshaytalkstomachines commented 3 years ago

Whole Application seems to follow MVC Architecture which makes it difficult to port to other languages and/or frmaework, it is highly dependent on Gin. Maybe something like go-kit?

mxschmitt commented 3 years ago

Hi, it was one of my first bigger Go projects. I personally would probably archive it soon since it does not follow good Go best practices.

lakshaytalkstomachines commented 3 years ago

oh can you direct some things over to me because i am learning go and would love some of the articles is that's not a problem. Also there is one question i have been meaning to ask someone: Say you need to get some of the data from data base, so you create a function in your service, but the things is the data that is required in the endpoint is not the data as same as the data in the database. So do you change the data in service layer or in transport layer?