Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project structure by feature #110

Open
AguGriguol opened this issue Jul 27, 2021 · 2 comments
Open

Project structure by feature #110

AguGriguol opened this issue Jul 27, 2021 · 2 comments

Comments

@AguGriguol
Copy link

Hello!

I want to know what is the best structure for large node js projects, I've been thinking a lot about how to scale the project. If the project starts to grow up, maybe we'll have a lot of files in the services and routes folder. Would you consider grouping each feature in folders and inside of them put the services and routes? For instance,

--> user
--> services
--> routes
--> test

Thanks in advance.

@nandanraj56
Copy link

Hi,
I also have same question, currently when following microservice architecture, we have these service and tests files in their each repo,
So its same as having multiple services, tests etc files each in its feature folder.

But in case of a monolithic architecture which way is more scalable and manageable? I wonder

Also a point to note is that angular by default keeps all files(controller, views and test) in respective components folder, the dont have a test folder which have all tests for all components.
To me it makes more sense to have this way,

I want to know other developers view too...

@santiq
Copy link
Owner

santiq commented Aug 9, 2021

Hi guys @AguGriguol @nandanraj56

My intention was never to say "use this way of separate folders" it is clear that separation by components has its advantages.

My main idea with this project was to teach about separation of concerns and clearly distinguish between layers.

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

No branches or pull requests

3 participants