Skip to content

Refactor Plan #94

@TremblingV5

Description

@TremblingV5

There're some plan for refactor DouTok. If you have some advices, please comment here.

Also, welcome to select one or more entries to do something and that's DouTok's pleasure. If you want to make some contributions to DouTok, we suggest open another issue which used to tell everyone what you want to do and assign it to yourself. In the way, we can avoid different people doing the same job.

The following is something what we want to do. Absolutely, anything that does not appear below is acceptable.

Run & Build & Deploy

  • Explore how to run applications easily. Now we have many modules, we only can run them by using go run ./applications/xxx/. We may use a better way to do these. See more on: use make to startup DouTok services #112

CI/CD

  • Add golangci-lint to lint code by using github actions
  • Run go test when open a PR
  • Add a flow to obtain unit test coverage

Code Layout

Now the code of DouTok still not elegant enough. Code layout is a big problem. There many places in this repo is not OOP (although golang is not a 100% OOP language). We suggest that we can improve the code layout of this repo. applications/commentDomain is an example.

Some package may need refactor:

  • applications/feed
  • applications/message
  • applications/messageDomain
  • applications/publish
  • applications/relationDomain @xwxb

Unit Test

Unfortunately, DouTok is poor on unit test. So any contributions for any package are welcome.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions