Giter VIP home page Giter VIP logo

file-manager's Introduction

文件管理

一个功能齐全的web文件管理器

技术栈:NestJS +SQLite + Vue + Element-Plus

特性

  • 断点续传(切片上传)
  • 秒传
  • 上传/下载限速
  • 简单的权限管理

预览Demo

https://fm-kv4b.onrender.com/fm/web/login?account=admin&pwd=admin123

启动

在本机启动

1.填写环境变量

cp .env.dist .env
vim .env

2.安装依赖

npm ci

3.构建代码

npm run build

4.执行初始化脚本

node scripts/init.js

5.启动服务

npm run start:prod
docker启动

环境变量

环境变量 是否必选
COOKIE_SECRET 可选

文件目录

简介 环境变量 默认值
上传文件的存放目录 UPLOAD_FILE_DIR /data/files
上传文件的切片的存放目录 UPLOAD_CHUNK_DIR /data/chunks
sqlite的数据文件存放目录 DATABASE_DIR /data/db
1.docker-compose启动

1.1.复制配置信息,并更改

cp docker-compose.dist.yml docker-compose.yml

1.2.启动

docker-compose up -d
2.docker命令启动
docker run -it --name file-manager \
  -e COOKIE_SECRET=xxxxxx \
  -v /tmp/db:/data/db -v /tmp/files:/data/files  \
  -p 8888:8888 \
  shenx2021/file-manager

命令

# 编译
npm run build
# 启动服务
npm start:prod
# 初始化目录和数据库
npm run init
# 构建init脚本
npm run build:init
# 清除目录和数据库
npm run reset
# 构建reset脚本
npm run build:reset

TODO

  • 邮件通知
  • 修改密码

file-manager's People

Contributors

shenx-2021 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.