HowProgrammingWorks / NodejsStarterKit

Starter Kit for Node.js 16 or later, minimum dependencies 🚀
http://metarhia.com
MIT License
462 stars 102 forks source link

Fix: load scripts from folders inside api #140

Closed sarnakov closed 4 years ago

sarnakov commented 4 years ago

Condition if (place !== 'static' && !file.isDirectory()) helps to load folders inside api, but prevent recursively loading scripts from static folder.

tshemsedinov commented 4 years ago

This gives us just loader but it is not good for application architectire, what we really need: interfaces (sets of methods) with metadata and versions. This starter kit will not support interfaces and versions inside api. Now I am porting everything to metarhia technology stack and will merge with it's libraries and functionality: https://github.com/metarhia/impress/pull/1199 After that I'll prepare metarhia/StarterKit it will contain application example and impress will support multiple interfaces with versions and metadata.