Skip to content

Instantly share code, notes, and snippets.

@makstyle119
Created November 20, 2022 13:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save makstyle119/11d84fee856b164b6cf439f9f921db08 to your computer and use it in GitHub Desktop.
Save makstyle119/11d84fee856b164b6cf439f9f921db08 to your computer and use it in GitHub Desktop.
Node JS Folder structure for Advance

folder Structure Advance

└── src
    └── api
        └── v1
            └── controllers
                └── tests
                └── index.ts
                └── UserController.ts
            └── helpers
            └── interfaces
                └── types
            └── middlewares
                └── index.ts
            └── models
                └── index.ts
                └── UserModel.ts
            └── routes
                └── UserRoute.ts
                └── index.ts
            └── services
                └── tests
                └── index.ts
                └── UserService.ts
            └── validations
                └── UserValidation.ts
    └── config
        └── swagger
        └── constants.ts
        └── DatabaseConfig.ts
        └── Logger.ts
    └── app.ts
└── tests
└── .env
└── .eslintignore
└── .gitignore
└── tsconfig.json ( only if you are using typeScript )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment