Node.js Projects: What directory structure you have for project?
Mahesh K

Mahesh K @maheshkale

About: I write (about) code and keep interest in Data science, Venture Funding and startups.

Joined:
May 2, 2018

Node.js Projects: What directory structure you have for project?

Publish Date: Jul 24 '19
6 2

When you are making any form of projects (not just web based).

What directory structure that you follow for the project?

Comments 2 total

  • Paramanantham Harrison
    Paramanantham HarrisonJul 24, 2019

    Domain driven structure

    • routes, model, seed, controllers and whatever file which is needed for a minimum functionality in a project. How to separate domain depends on project to project. For example, in a e-commerce web app, domains can be
    • products
    • users
    • orders
    • wishlist
    • search
    • related products
    • faq
    • feedback
    • analytics

    And so on. There is no hard rules, you can split when needed

  • Lars Wächter
    Lars WächterJul 24, 2019

    Some time ago I wrote an article about how I structure my REST Apis in Node.js: dev.to/larswaechter/how-i-structur...

Add comment