Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Any Easy to extend Web-based File Manager for node.js?

Want to find one and modify that to read, write file on mongoDB gridfs store

like image 728
Eric Fong Avatar asked Oct 06 '10 06:10

Eric Fong


People also ask

For which NodeJS is not recommended?

js receives a CPU bound task: Whenever a heavy request comes to the event loop, Node. js would set all the CPU available to process it first, and then answer other requests queued. That results in slow processing and overall delay in the event loop, which is why Node. js is not recommended for heavy computation.

What is the file extension for NodeJS?

Module files can have either a . js, . node, or . json file extension.

Is NodeJS good for web apps?

Node. js is a boon for those looking to simplify their tasks for real-time application development like gaming and messenger apps. For those web application that requires using an event-based and non-blocking server, the real-time web application is the answer and Node. js provides it with the best.

Is NodeJS good for large applications?

It is suitable for large enterprise projects that do complex and complicated computations and data processing. The comparison in terms of development time between Node. js and Java is that, Node. js is easier to learn than Java, leading to faster development when using Node.


2 Answers

You could try Cloud Commander node.js-based orthodox file manager. It could be used as middleware for express this way:

var http        = require('http'),
    cloudcmd    = require('cloudcmd'),
    express     = require('express'),
    io          = require('socket.io'),
    app         = express(),

    PORT        = 1337,

    server,
    socket;

server = http.createServer(app);
socket = io.listen(server);

app.use(cloudcmd({
    socket: socket,     /* used by Config, Edit (optional) and Console (required)   */
    config: {           /* config data (optional)                                   */
        prefix: '/cloudcmd', /* base URL or function which returns base URL (optional)   */
    }
}));

server.listen(PORT);

When you need a file tree you could try this angular/node based example.

like image 99
coderaiser Avatar answered Oct 10 '22 15:10

coderaiser


Nodepad:

This tutorial will give you a good idea on how it was made: http://dailyjs.com/2010/11/01/node-tutorial/ As knowing how it was made it should make it heaps easer to extend it. :) It is quite basic, I'm re-writing the whole thing myself :P

Nodepad on github: https://github.com/alexyoung/nodepad

It even uses MongoDB, I'm going to do the opposite to what you wanted to do and that is make it not use MongoDB. :P

like image 42
JamesM-SiteGen Avatar answered Oct 10 '22 14:10

JamesM-SiteGen