Creating a consistent directory structure

You must choose a consistent directory structure for your software assets, as it can help you perform scripted retrievals from a CI server.

Here is a sample folder structure that I have done for a skeleton React/Redux application:

  • ca (certificate authority)
  • config (configuration files)
  • db (database-related stuff)
  • docs (documentation)
  • images
  • models (data files)
  • test (all my test files)
    • unit
    • integration
    • e2e
    • helpers
  • static
    • build
    • js
      • actions
      • components
      • constants
      • data
      • reducers
      • store
      • utils
    • scss
  • utils (utility files)

Here is another directory structure that I have followed, which is package oriented and recommended by Bill Kennedy from the Golang Community (https://www.ardanlabs.com/blog/2017/02/package-oriented-design.html ...

Get Hands-On Continuous Integration and Delivery now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.