You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/03-fru-service/README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,8 @@ SPDX-License-Identifier: MIT
10
10
**Difficulty:** Advanced
11
11
**Prerequisites:** Go 1.23+, fabrica CLI installed, SQLite3
12
12
13
+
> **About This Example:** This directory contains reference code that demonstrates Fabrica's Ent storage features. The `pkg/` directory includes example implementations marked with `//go:build ignore` to prevent them from being compiled as part of the Fabrica repository. When following this guide, you'll generate your own project with Fabrica, and these files serve as documentation and reference.
14
+
13
15
## What You'll Build
14
16
15
17
A Field Replaceable Unit (FRU) inventory service with:
Copy file name to clipboardExpand all lines: examples/03-fru-service/pkg/resources/fru/fru.go
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,7 @@
1
+
//go:build ignore
2
+
3
+
// The line above is necessary to prevent this file from being included in the main build of fabrica. You may need to remove it to succeed with the example.
Copy file name to clipboardExpand all lines: examples/04-rack-reconciliation/README.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,8 @@ SPDX-License-Identifier: MIT
10
10
**Difficulty:** Advanced
11
11
**Prerequisites:** Go 1.23+, fabrica CLI installed, understanding of reconciliation patterns
12
12
13
+
> **About This Example:** This directory contains reference code that demonstrates Fabrica's reconciliation features. The `pkg/` directory includes example implementations marked with `//go:build ignore` to prevent them from being compiled as part of the Fabrica repository. When following this guide, you'll generate your own project and can optionally copy the example implementations (removing the build constraint as shown in the instructions).
14
+
13
15
## What You'll Build
14
16
15
17
A data center rack inventory system that demonstrates **event-driven reconciliation**:
> **Note:** The example file includes `//go:build ignore` at the top to prevent it from being built as part of the Fabrica repository. This line should be removed when copying to your project (the `sed` command above handles this automatically).
272
+
264
273
This example file shows a complete production-ready implementation with:
0 commit comments