简体   繁体   中英

CDN server written in node.js

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.

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.

研究grunt ,它具有适用于各种资产管道的插件。

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?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM