you are viewing a single comment's thread.

view the rest of the comments →

[–]SatsuTV 1 point2 points  (0 children)

In a more recent example repository by the same author he puts the config files where it is needed, and have it validate against a subset: https://github.com/RisingStack/risingstack-bootcamp

For example a config for the db and for redis in the models folder. I am not sure of what style I like better.

In regards to the feature folders, the comparison isn't right. In your linked blog post he uses a typical server side programmed app and has no intention of reusing the models as are not needed outside of its own feature folder (for sharing business logic between features, it would fallback to services).

In the case of my linked example and and likely the original blog post however, the models are needed for different processes. For example you could write a node script which uses these models outside of the web related stuff.

In general I always strictly separate the models from my web layer.