githubEdit

rectangle-historyDomain Project

The Shopfoo.Productarrow-up-right project implements domain workflows using the .

Here is a simplified view from the solution explorer:

πŸ“‚ src/
β”œβ”€β”€πŸ“‚ Core/
β”‚  β”œβ”€β”€πŸ—ƒοΈ Shopfoo.Common
β”‚  β”œβ”€β”€πŸ—ƒοΈ Shopfoo.Domain.Types
β”‚  β””β”€β”€πŸ—ƒοΈ Shopfoo.Effects
β”œβ”€β”€πŸ“‚ Feat/
β”‚  β”œβ”€β”€πŸ—ƒοΈ Shopfoo.Home
β”‚  β””β”€β”€πŸ—ƒοΈ Shopfoo.Product πŸ‘ˆπŸ‘ˆ
β”‚     β”œβ”€β”€πŸ“‚ Workflows/
β”‚     β”‚  β”œβ”€β”€πŸ“„ Types.fs
β”‚     β”‚  β”œβ”€β”€πŸ“„ Instructions.fs
β”‚     β”‚  β”œβ”€β”€πŸ“„ AdjustStock.fs
β”‚     β”‚  β”œβ”€β”€πŸ“„ MarkAsSoldOut.fs
β”‚     β”‚  β””β”€β”€πŸ“„ ...
β”‚     β”œβ”€β”€πŸ“‚ Data/
β”‚     β””β”€β”€πŸ“„ Api.fs
β””β”€β”€πŸ“‚ UI/
   β”œβ”€β”€πŸ—ƒοΈ Shopfoo.Client
   β”œβ”€β”€πŸ—ƒοΈ Shopfoo.Server
   β””β”€β”€πŸ—ƒοΈ Shopfoo.Shared

We will examine each part separately:

  • describes how we can define the instructions called by domain workflows.

  • Workflows presents how to write domain workflows by analyzing three typical use cases.

  • Data 🚧 indicates a way to organize the data access layer, whether it is to access a database or call an external API.

  • Api describes how to define project entry points for higher layers, abstracting from lower layersβ€”Workflows and Data.

Last updated