Skip to content

Comments

3 layer backend architecture, testing suite, and minor improvements#135

Draft
jenul-ferdinand wants to merge 250 commits intomainfrom
code-style-fixes
Draft

3 layer backend architecture, testing suite, and minor improvements#135
jenul-ferdinand wants to merge 250 commits intomainfrom
code-style-fixes

Conversation

@jenul-ferdinand
Copy link
Member

@jenul-ferdinand jenul-ferdinand commented Dec 28, 2025

  • Setup a three layer backend architecture with an updated file structure, repositories/, services/, controllers/.

  • Because of this, we have improved testability especially for business logic in our backend services.

  • Testing suite can be found in tests/, using Jest with sample data from the test db as fixtures, mongodb-memory-server is used to test the service layer.

  • Previous "services" are now providers/. E.g., AiOverviewProvider.

  • Setup module alias importing e.g., "@models/unit" instead of "../../../../models/unit". This needed some tweaks so that intellisense works see backend/jsconfig.json and backend/package.json.

  • Old endpoints are V1 and new endpoints are V2.

  • The frontend garbage code is improving, work in progress.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant