Giter Site home page Giter Site logo

askintution / tms-finder Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jasony62/tms-finder

0.0 1.0 0.0 322 KB

开箱即用的在线文件管理应用,支持本地文件系统和对象存储,支持与其他应用集成。

License: MIT License

JavaScript 47.69% HTML 2.59% Vue 37.57% Dockerfile 7.67% Shell 4.48%

tms-finder's Introduction

tms-finder项目是一个在线文档管理系统,back目录下是用node实现的后端服务,ue目录下是用Vue实现的用户端应用,build后会部署到nginx中。上传文件时用户可以输入文件的描述信息(可配置),文件会存在放在服务端指定的本地硬盘上(可配置),描述信息会保存在指定的mongodb中(可配置)。

这个项目是开箱即用的,在安装好dockerdocker-compose的机器上,从github拉取代码,执行docker-compose up -d命令就可以把整个应用运行起来。

这个项目是环境友好的,制作的默认镜像可以灵活部署在不同的环境中(通过设置环境变量),也可以根据环境的要求制作新的镜像(通过设置构建参数)。

这个项目是编码友好的,程序员可以有选择地使用 docker,前后端都可以在容器外运行,方便调试代码。

启动服务

git clone https://github.com/jasony62/tms-finder

cd tms-finder

docker-compose up -d

在浏览器中输入:http://localhost:8080/finder_ue/web

关闭服务

docker-compose down

应用配置

docker-compose -f docker-compose.yml -f docker-compose.xxxx.yml up -d

服务端(back)

环境变量

变量 说明 默认值
TMS_FINDER_MONGODB_HOST 记录上传文件信息的 mongodb 地址 localhost
TMS_FINDER_MONGODB_PORT 记录上传文件信息的 mongodb 端口 27017
TMS_FINDER_FS_ROOTDIR 上传文件在本地磁盘的存储位置 storage
TMS_FINDER_FS_MONGODB_SOURCE 记录上传文件信息的 mongodb 数据源,和配置文件mongodb.js中的内容对应 master
TMS_FINDER_FS_MONGODB_DATABASE 记录上传文件信息的 mongodb 数据库 upload
TMS_FINDER_FS_MONGODB_COLLECTION 记录上传文件信息的 mongodb 集合 files

配置文件

config/app.js


config/mongodb.js


config/fs.js


config/log4js.js

用户端(ue)

环境变量

变量 说明 默认值
VUE_APP_BASE_URL 应用的基础路径(域名后的子地址) finder_ue
VUE_APP_AUTH_SERVER 用户鉴权 API 地址 http://localhost:3000
VUE_APP_LOGIN_KEY_USERNAME 用户鉴权 API 中用到的字段,用户名 username
VUE_APP_LOGIN_KEY_PASSWORD 用户鉴权 API 中用到的字段,密码 password
VUE_APP_LOGIN_KEY_PIN 用户鉴权 API 中用到的字段,验证码 pin
VUE_APP_API_SERVER 业务 API 地址 http://localhost:3000

参考

tms-finder's People

Contributors

jasony62 avatar liao1a 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.