I'm currently creating a big multi-page project using Node.js and EJS as template engine and I'm having some problems organizing my code. I've only only found recommendations regarding css and js patterns, but little information about Front-End Architecture. So far this is the best link I've found about this topic.
I'm about to re-order my code as follows:
\views
home.ejs
about.ejs
products.ejs
\partials
header.ejs
footer.ejs
\css
\home
home.css
\about
about.css
\products
produtcs.css
\imgs
\js
\controllers
home.js
about.js
products.js
\libs
jquery.js
analytics.js
\plugins
jquery.tooltip.js
textResize.js
formValidation.js
Recommendations are more than welcome.
Aucun commentaire:
Enregistrer un commentaire