Instruction file imported from FaithForge/faith-forge-web (
.github/instructions/repo-architecture.instructions.md). Copyright stays with the author.
Repository Architecture
src/pagescontains the route entry points and page-level orchestration.src/componentscontains reusable feature and UI components.src/libs/common-typescontains constants and shared data contracts.src/libs/modelscontains domain models and interfaces.src/libs/state/reduxcontains Redux store setup, hooks, slices, and thunks.src/libs/utilscontains shared helpers for auth, dates, navigation, text, themes, and validation.src/servicescontains service modules that talk to the backend or encapsulate domain I/O.
When Adding Code
- Put reusable UI into
src/components. - Put domain logic and shared helpers into
src/libs. - Put route-specific composition in
src/pages. - Put network access in
src/servicesunless the feature already has a dedicated thunk or slice pattern.