code-corps / code-corps/code-corps-api

RFC: Bounded Contexts for CodeCorps API and Phoenix 1.3+

Đang mở
#863 4 bình luận 0 reaction 0 người được giao Xem trên GitHub
RFC
Ngôn ngữ chính
Elixir
Star
234
Fork
82
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

# Problem

#749 deals with upgrading to phoenix 1.3

However, part of that upgrade is the encouragement to switch from a flat layer of models/schemas into a concept of bounded contexts

This would facilitate management, maintainability and understanding of the code, but requires some research and discussion before it can be attempted.

I'm already doing some reading, but I would not feel confident in doing this alone, so any ideas are welcome.

# Some links to go through:

- https://martinfowler.com/bliki/BoundedContext.html
- https://robots.thoughtbot.com/lessons-from-using-phoenix-1-3

# Initial ideas for boundaries

- `CodeCorps.Account` - creation of accounts, signing in, reseting password, etc, etc
- probably `UserRole`, `UserSkill`, `UserCategory`, etc, would go here to

- `CodeCorps.Forum/ProjectManagement` - Projects, Tasks, Comments, Memberships, etc
- probably `ProjectRole`, `ProjectSkill`, `ProjectCategory`, `TaskSkill`, would go here

- `CodeCorps.Funding/.Stripe/.Payments/.Subscriptions` - Stripe/payment stuff
- `CodeCorps.GithubIntegration`

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.