This is the reference point. All the other options are based off this.
|-- app
| |-- controllers
| | |-- admin
| <?php | |
| class TailRecursion | |
| { | |
| public $func; | |
| public $acc; | |
| public $recursing; | |
| public function tail() | |
| { | |
| return call_user_func_array($this->func, func_get_args()); |
While the following structure is not an absolute requirement or enforced by the tools, it is a recommendation based on what the JavaScript and in particular Node community at large have been following by convention.
Beyond a suggested structure, no tooling recommendations, or sub-module structure is outlined here.
lib/ is intended for code that can run as-issrc/ is intended for code that needs to be manipulated before it can be used| <div | |
| tabIndex="0" | |
| ref={onRef} | |
| onBlur={onWrapperBlur} | |
| > | |
| // ... | |
| withHandlers(() => { | |
| let element = null; |
code: https://github.com/zmts/supra-api-nodejs
Одной из болезней Node.js комьюнити это отсутствие каких либо крупных фреймворков, действительно крупных уровня Symphony/Django/RoR/Spring. Что является причиной все ещё достаточно юного возраста данной технологии. И каждый кузнец кует как умеет ну или как в интернетах посоветовали. Собственно это моя попытка выковать некий свой подход к построению Node.js приложений.