Back to Ash

Code Structure & Organization

usage-rules/code_structure.md

3.24.6452 B
Original Source
<!-- SPDX-FileCopyrightText: 2019 ash contributors <https://github.com/ash-project/ash/graphs/contributors> SPDX-License-Identifier: MIT -->

Code Structure & Organization

  • Organize code around domains and resources
  • Each resource should be focused and well-named
  • Create domain-specific actions rather than generic CRUD operations
  • Put business logic inside actions rather than in external modules
  • Use resources to model your domain entities