radarlog/doop

简单文件上传器 / AWS S3 上传器

维护者

详细信息

github.com/radarlog/doop

源代码

问题

安装次数: 3

依赖者: 0

建议者: 0

安全: 0

星标: 1

关注者: 2

分支: 0

开放问题: 0

类型:项目

dev-master 2024-07-21 13:01 UTC

This package is auto-updated.

Last update: 2024-09-21 16:58:55 UTC


README

Build Status codecov

Doop 是一个 PHP 应用程序,实现了用于将图像上传到兼容 S3 的对象存储以及使用 PostgreSQL 进行数据去重的六边形架构。它严格遵守 SOLID 原则,并经过 100% 的测试覆盖。开发环境完全通过 makefile 自动化和 Docker 化。

要求

  • PHP >= 8.3
  • PostgreSQL >= 16.3
  • S3 兼容存储(AWS,MinIO)
  • Node.js >= 22.2
  • Yarn >= 1.22
  • Typescript >= 5.4

目录结构

bin/                 cli entry point 
config/              configuration files
docker/              docker related files
public/              http document root
src/                 source files
  Application/       application layer (use cases)
  Domain/            domain layer (core logic)
  Frontend/          frontend application (css, html, typescript)
  Infrastructure/    infrastructure layer (db, cli, http)
tests/               unit and functional tests
  Application/       use cases unit tests
  Domain/            domain layer unit tests
  Fixtures/          image fixture files
  Infrastructure/    infrastructure functional tests

本地运行

确保您已安装 docker composemake。克隆最新版本并运行

$ make run

然后使用您喜欢的浏览器导航到 https:///

测试

确保您已安装 docker composemake。执行所有必要的 QA 检查,如编码风格、静态分析和单元/功能测试

$ make tests

许可

Doop 在 MIT 许可下发布。请参阅 LICENSE 以获取详细信息。

更新日志

请参阅 CHANGELOG 以获取更多信息。