Skip to content

11 Directory Structure conform Clean Architecture - #18

Merged
thomasdejaeghere merged 7 commits into
developmentfrom
11-directory-structure
Feb 25, 2025
Merged

11 Directory Structure conform Clean Architecture#18
thomasdejaeghere merged 7 commits into
developmentfrom
11-directory-structure

Conversation

@thomasdejaeghere

Copy link
Copy Markdown
Contributor

Directory structure for backend and frontend is ready for implementation. The structure is conform clean architecture and files for all needed entities (as described by @brentjan) have been made. You can see a basic scheme of the structure below this message. I also added a few example use-cases, these can be used, deleted, modified at will. Now we can set-up the right issues to split up the work over the different entities and use-cases needed for the project.

backend/
│── src/
│ ├── core/ # (Entities & Use Cases)
│ │ ├── entities/ # Domain models (pure TypeScript classes)
│ │ ├── use-cases/ # Business logic use cases
│ ├── infrastructure/ # (External dependencies)
│ │ ├── database/ # TypeORM entities & database config
│ │ ├── repositories/ # Data access layer (TypeORM Repos)
│ ├── application/ # (Interface Adapters)
│ │ ├── controllers/ # Express route handlers
│ │ ├── services/ # Application services
│ │ ├── routes/ # Definitions of routes for entities
│ ├── config/ # Basic interfaces for frequently used classes
│ ├── index.ts

frontend/
│── src/
│ ├── app/
│ │ ├── core/ # (Business logic, use cases if needed)
│ │ ├── infrastructure/ # (External dependencies)
│ │ │ ├── api/ # API services
│ │ │ ├── guards/ # Route guards
│ │ ├── components/ # Reusable UI components
│ │ ├── pages/ # Page-level components (mapped in routes)
│ │ ├── app.routes.ts # Main routing file
│ │ ├── app.component.ts # Root component

@thomasdejaeghere

Copy link
Copy Markdown
Contributor Author

This PR closes #11

@bramcomyn bramcomyn linked an issue Feb 25, 2025 that may be closed by this pull request
@bramcomyn

Copy link
Copy Markdown
Contributor

This PR closes #11

Fun fact, @thomasdejaeghere, you can also define this at the right-hand side of your screen by selecting issue #11 in Development!

@thomasdejaeghere

Copy link
Copy Markdown
Contributor Author

This PR closes #11

Fun fact, @thomasdejaeghere, you can also define this at the right-hand side of your screen by selecting issue #11 in Development!

I was in fact searching for that functionality! Thanks!

@thomasdejaeghere
thomasdejaeghere merged commit d938ee8 into development Feb 25, 2025
@thomasdejaeghere
thomasdejaeghere deleted the 11-directory-structure branch February 25, 2025 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Directory Structure

4 participants