Giter Club home page Giter Club logo

asset-manager's Introduction

BZFlag Asset Manager

Asset Manager is a web interface for the submission of game assets and a simple moderation system. This is a replacement for the old BZFlag Image Uploader a.k.a. submitimages.

Feature Progress

  • BZFlag WebLogin integration
  • Queue database
  • Image thumbnail generator
  • Ability to upload new assets
    • Editing asset information after a change is requested
  • Moderation interface for the asset queue
  • Email notifications
    • Moderation queue reminders
  • Directory index for listing assets

Requirements

  • PHP 8.2 or later (ideally the FPM variant), with the following extensions:
    • PDO
    • cURL
    • FileInfo
    • GD
    • PDO
    • SQLite3
  • Composer

Installation

This assumes that the website will be stored in /var/www/asset-manager, where /var/www/asset-manager/README.md would be this file.

git clone https://github.com/BZFlag-Dev/asset-manager /var/www/asset-manager
cd /var/www/asset-manager
composer install

The final location of approved assets would be elsewhere, such as /var/www/assets/public.

A configuration file named config.php will need to be created and would be placed at /var/www/asset-manager/config.php:

<?php
return [
  'site' => [
    'takedown_address' => '[email protected]'
  ],
  'path' => [
    'files' => '/var/www/assets/public'
  ],
  'auth' => [
    'admin_group' => 'SOME.GROUP',
  ],
  'asset' => [
    'upload' => [
      'types' => [
        'image/png' => 'png',
        'image/jpeg' => ['jpg', 'jpeg']
      ]
    ]
  ],
  'email' => [
    'from_address' => '[email protected]',
    'notify_addresses' => [
      '[email protected]',
      '[email protected]'
    ]
  ]
];

Create a symbolic link to directory_index.php inside /var/www/assets/public:

ln -s /var/www/asset-manager/directory_index.php /var/www/assets/public/index.php

Create a web server configuration, such as something like this for Apache:

<VirtualHost *:80>
        ServerName assets.example.com

        DocumentRoot /var/www/assets/public
        <Directory /var/www/assets/public>
                Require all granted
                DirectoryIndex /index.php
        </Directory>


        Alias /manage /var/www/asset-manager/public
        <Directory /var/www/asset-manager/public>
                Require all granted

                RewriteEngine On
                RewriteBase /manage
                RewriteCond %{REQUEST_FILENAME} !-f
                RewriteCond %{REQUEST_FILENAME} !-d
                RewriteRule ^ index.php [QSA,L]
        </Directory>
</VirtualHost>

asset-manager's People

Contributors

blast007 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

blast007

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.