node.js - Nodejs asset management -
evaluating nodejs , trying see if fit our needs. coming rails world, have few unanswered questions despite searching long time.
whats best way manage assets nodejs (expressjs)? in rails, static assets a) fingerprinted caching forever b) js , css minified 3) scss compiled down css
whats best way handled uploaded images users such avatars?
does grunt minifying , gzipping html/css/javascript?
how can avoid mutliple http requests server node. don't want make multiple http requests every javascript asset need. rails helps here combining js , css files.
also, mongodb preferred solution projects? hear lot of bad things mongodb , things it. having difficult time deciding if mongo can more reads writes 400-500 gb data in long run.
any or pointers? taking time point me right places.
for each of point mentioned give few module examples might fit need. remember @ every point there more modules serving same purpose:
node-static (as static file server), node-uglify (for minifying js code), css-clean (same css), merge-js, sqwish, , jake can building of website (in step plug-in previous modules)
node-formidable pretty famous
check out question
checkout question
i not sure if "preferred". nosql , javascript nature in makes attractive. there modules every type of database. ongo should handle data. depends how large 1 document. there limitations.
there this github wiki page in nodejs project listing , categorizing many of important modules out there.
the exact choice of modules depends framework use use build app. pretty established (but not one) express. can find more on topic here.
Comments
Post a Comment