readme
install
- install global
npm install files-explore -g
- start
files-explore path portr
- for example 'files-explore /usr/local 8080'
path
is the directory you want to show, the default value is current pathport
is the http server port, default value is8088
安装
- 全局安装 ``npm install files-explore -g`
- 启动
files-explore path port
- 比如
files-explore /usr/local 8080
path
参数是你想访问的文件夹路径,默认值是当前路径port
参数是http服务器的端口号,默认值是8088
instruction
-
it support image
thumbnail
, but you must installimagemagick
. If you are a Mac user, you can installimagemagick
with brew.brew install imagemagick
. -
it also support
video thumbnail
and other types of vide, but you must installffmpeg
. If you are a Mac user, you can install with brew,brew install ffmpeg
.
说明
- 如果想显示缩略图,请先安装
imagemagick
,Mac系统可以使用brew install imagemagick
- 如果想显示视频缩略图和在线预览
mp4
mkv
之外的格式视频, 请安装ffmpeg
,Mac系统可以使用brew install ffmpeg
develop
- it build with browserify-build, it is a build tool with browserify browser-sync gulp
git clone https://github.com/chenkehxx/files-explore.git
npm install
npm install -g browserify-build
node server/app path port
browserify-build config
browserify-build start
- open the url:
http://localhost:8080
with brower
开发
- 开发构建工具是browserify-build,这是一个基于browserify browser-sync gulp的构建工具
git clone https://github.com/chenkehxx/files-explore.git
npm install
npm install -g browserify-build
node server/app path port
browserify-build config
browserify-build start
- 在浏览器中打开``http://localhost:8080
tips
- it supports
es6
, - it supports
unit test
, the config file is attest/karma.conf.js
, then you can run the test with the command linekarma start test/karma.conf.js
- it supports
e2e test
, the config file is attest/protractor.conf.js
, then you can run the test with the comman lineprotractor test/protractor.conf.js
提示
- 支持es6写法
- 支持
unit test
相关配置文件在test/karam.conf.js
执行命令karma start test/karma.conf.js
- 支持
e2e test
相关配置文件在test/protractor.conf.js
执行命令protractor test/protractor.conf.js
screenshots