https://github.com/hxtree/photo-gallery
RETIRED: Photo Gallery
https://github.com/hxtree/photo-gallery
Last synced: about 2 months ago
JSON representation
RETIRED: Photo Gallery
- Host: GitHub
- URL: https://github.com/hxtree/photo-gallery
- Owner: hxtree
- Created: 2019-11-20T18:12:38.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-20T18:39:47.000Z (over 5 years ago)
- Last Synced: 2025-02-12T10:34:42.310Z (3 months ago)
- Language: CSS
- Size: 356 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Photo Gallery
This was an old exercise to create a photo gallery with thumbnails, LDAP, machine learning tags, etc. The project was retired.It serves as a learning tool to show growth. If I had to do this again I would:
+ use a more OOP approach,
+ a design pattern,
+ not close php files ?>
+ not echo every line (templating engine, like PXP perhaps),
+ use an SPL autoloader,
+ a package manager (composer), etc. for Bootstrap
+ KISS
+ Adapt the unix philosophy
+ Consider screen reader
+ etc. etc ;-)# How it Works
+ All web pages are stored in the pages folder
+ A page must be added to the database and a php file to the pages folder before it will be live
+ Authentication works through LDAP server amd occurs in index.php
+ Configurations are stored in resources/config.
+ Photo processing is completed using a python script need to add cron job to python script in lib, crontab -e
> */5 * * * * python /var/www/photos/lib/process-files.py# Requirements:
## General
>sudo apt-get install apache2 php php-zip mysql-server php-mysql## Photo processing:
>apt-get install python python-pip imagemagick libmagickwand-dev libmysqlclient-dev
>pip install MySQL-python configparser wand tendo