node.js - Nodejs asset management -


evaluating nodejs , trying see if fit our needs. coming rails world, have few unanswered questions despite searching long time.

  1. whats best way manage assets nodejs (expressjs)? in rails, static assets a) fingerprinted caching forever b) js , css minified 3) scss compiled down css

  2. whats best way handled uploaded images users such avatars?

  3. does grunt minifying , gzipping html/css/javascript?

  4. 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.

  5. 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:

  1. 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)

  2. node-formidable pretty famous

  3. check out question

  4. checkout question

  5. 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

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -