peektoseen / image-supervisor

Service for images moderation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Image Supervisor

About

Project for moderate pictures.

index page

Install

git clone https://github.com/peektoseen/image-supervisor.git
cd image-supervisor
./deploy.sh

If you need add new sources types - you can create new component in /components directory. As example and for skeleton component - you can use /components/picsum .

WARNING 80 port must be available on host machine. In other cases you need do manual configuration. And GitHub issues always welcome.

WARNING In production you must specify postgres password. For easy development - postgresql from docker-compose.yml allow no-password connection by default, but anyway - postgresql port doesn't opened outside of docker.

Admin access

Available on /admin page. For access to admin part of service - you need past get parameter token , by default token set to xyz123 . You can override it in ADMIN_TOKEN environment variable.

Realisation peculiarities

  • For parameters in moderation request to api used two parameters: url and id. Theoretically - we can use url for extract id, but not always url may contain plain id, and for some sources may be need transformation from url to integer id.
  • You can easily add new sources type, for it, you need add two new classes in ./components directory.

Backlog for next versions

  • Image preload. Preload images before click on button
  • Remove bootstrap dependency.

About

Service for images moderation


Languages

Language:PHP 89.9%Language:CSS 4.5%Language:Shell 2.0%Language:Dockerfile 1.6%Language:JavaScript 1.2%Language:Batchfile 0.8%