mkoryak
mkoryak

Reputation: 57928

CDN server written in node.js

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

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.

Upvotes: 7

Views: 10590

Answers (3)

saintedlama
saintedlama

Reputation: 6898

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.

Upvotes: 2

jmingov
jmingov

Reputation: 14003

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?

Upvotes: 0

BraveNewCurrency
BraveNewCurrency

Reputation: 13065

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

Upvotes: 0

Related Questions