7

I am trying to find an example of a CDN server written in nodejs that does the following:

  • Minification of CSS & JS
  • Pre-Compiling LESS
  • Pre-Compiling CoffeeScript
  • Static Redirection if content already available in another bucket
  • A management interface

I realize that something like this already exists (S3 etc) but my interest is academic. I am interested if something like this has been done in node, and how.

mkoryak
  • 57,086
  • 61
  • 201
  • 257
  • 1
    i found this: https://github.com/niftylettuce/express-cdn - not exactly what i want, since it needs s3 but useful. – mkoryak May 07 '13 at 18:44

3 Answers3

2

You should have a look at express-cdn, a module to deliver compressed, minified and assets combined assets to CDN servers (Currently Amazon S3). It lacks some management interface but implements a couple of features you require.

saintedlama
  • 6,838
  • 1
  • 28
  • 46
0

Look into grunt, it has plugins for every kind of asset pipeline.

BraveNewCurrency
  • 12,654
  • 2
  • 42
  • 50
0

I cant find a module to perform all your tasks at the same time. You should mix modules in your application. I recommend you look at npmjs.org

Minification of CSS & JS ---> Here

Pre-Compiling LESS ---> Here

Pre-compiling CoffeScript (The command-line version of coffee is available as a Node.js utility.) Here

Static Redirection if content already available in another bucket: Nothing clear, you should have some kind of db for the files, for the redirections go to nginx.org <3

A management interface: Any Easy to extend Web-based File Manager for node.js?

Community
  • 1
  • 1
jmingov
  • 13,553
  • 2
  • 34
  • 37