It would be ideal to follow the same structure you are designing for each kind of module ("folder").

It will make the code more maintainable.

Just keep in mind that nothing is set on stone, you can adapt from project to project and check other software engineers ideas as well...

If you would try the same but with NestJS then you would already have a better guidance on how to follow it. If you would like to take a look on NestJS framework over Express, try this friendly link: https://makinhs.medium.com/graphql-nodejs-postgres-made-easy-with-nestjs-and-typeorm-4daff3c516d?sk=813224fbe4231534871c185e4792e3e3

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Responses (1)

Write a response