NFile——基于Nodejs的文件系统

来源:互联网 发布:seo如何发外链 编辑:程序博客网 时间:2024/05/29 12:08

NFile——基于Nodejs的文件系统

标签(空格分隔): nodejs express


NFile是一个基于nodejs和easyui的文件管理系统,通过它可以实现文件的的新增、上传、编辑、删除等操作。

如何使用

# check out from github git clone "https://github.com/shushanfx/nfile.git"# install dependencies and start it.npm install && npm start

对于开发者而言,可以将npm start替换为npm run dev,使用该命令时必须确保安装supervisor

配置

配置文件放置在config.json,你可以随时调整该配置,配置如下:

{    "port": 18081, // 开放的端口    "name": "File System", // 文件系统的名字    "cnName": "文件管理系统", // 中文名字    "company": "wap.sogou.com",     "description": "文件管理系统",    "workspace": {        "path": "/search/odin/file_system" // 文件系统路径,所有的文件操作均在该文件之下。    }}

预览

如上配置,系统运行后可以通过http://localhost:18081访问,预览效果如下:
image_1b5h5todm2rjth41p8b1kt889j9.png-17.3kB
右键菜单如下:
image_1b5h5uin9b711krd1cpe1ivd1pcem.png-31.2kB

开源代码

该项目已经开源,github地址: https://github.com/shushanfx/nfile

0 0