TimeleapLabs / unchained

Unchained is a decentralized, federated network for data indexing, validation, analysis, processing, and delivery.
https://kenshi.io/unchained
Other
46 stars 20 forks source link

Feat: Change the project structure to a clean one #75

Closed logicalangel closed 6 months ago

logicalangel commented 8 months ago

Dears, I think the project structure should change to a clear and union-based one. I suggest the Hexagonal architecture: https://medium.com/@matiasvarela/hexagonal-architecture-in-go-cfd4e436faa3

with the structure that is explained in this repository: https://github.com/evrone/go-clean-template

The benefits of using union-based architecture are:

In this change, I want to reorganize the project which is the first step to making the project clear. A desired view of the app after change:

pouya-eghbali commented 8 months ago

@logicalangel is this a task multiple people can work on? We need to plan this ahead before we jump into the implementation.

logicalangel commented 8 months ago

@logicalangel is this a task multiple people can work on? We need to plan this ahead before we jump into the implementation.

It can be multistep, I think we should start changing from each layer.

logicalangel commented 6 months ago

Solved in several previous PRs.