Code Monkey home page Code Monkey logo

work's Introduction

一个收集图片并打包的工具,主要用于完成上级团委组织的行政任务:收集青年大学习截图。

Work 的核心目的是略过技术,设计出一个功能简单易用兼容移动设备的工具。而经过一年的场景验证与投产改进,对服务器性能的需求足以忽略不计。

需要注意的是,图片附件会在客户端执行有损压缩。

安装

安装 PHP 依赖:

composer install

安装 Node.js 依赖:

npm install
npm run production

配置 .env 文件中的数据库信息:

如需由 Sentry 提供的错误信息收集服务,可以配置 SENTRY_LARAVEL_DSN

如需由 Simple Analytics 提供的隐私友好型分析,可以配置 MIX_SIMPLE_ANALYTICS_ENABLEtrue

cp .env.example .env

php artisan key:generate

执行数据库迁移。

php artisan migrate

将 Web 服务器运行目录设为 public,并配置 Web 服务器的伪静态 Pretty URLs - Installation Laravel

维护

项目中的导出功能由 Laravel 的 deleteFileAfterSend 方法提供,该方法在特定的情况下客户端下载文件后不会自动清理文件。

可以将这条命令根据需求修改后配置到 Cron 以自动清理压缩包。

rm -rf storage/*.zip

如果项目中的数据不再需要,可以清理项目中的所有数据。

rm -rf storage/app/*

php artisan migrate:refresh

work's People

Contributors

dependabot[bot] avatar depfu[bot] avatar ss098 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.