Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
projects:pinup [2023/03/26 12:01] – [Missing features] darronprojects:pinup [2023/12/20 09:03] (current) – [Pinup Home Photos] darron
Line 1: Line 1:
 ==== Pinup Home Photos==== ==== Pinup Home Photos====
- 
-This documentation is WORK-IN-PROGRESS 
  
 Pinup is a home photo gallery application written in PHP Pinup is a home photo gallery application written in PHP
Line 7: Line 5:
 be added later. be added later.
  
-Pinup was primarily designed to run on a Raspberry Pi in the home+Pinup is primarily designed to run on a Raspberry Pi in the home
 environment as a single user application for viewing environment as a single user application for viewing
 images grabbed from a mobile phone. images grabbed from a mobile phone.
  
 +The user interface is designed for simplicity.
 +
 +Pinup was written in March 2023 and updated in December 2023 with bug fixes, database and UI tweaks, and a slideshow feature.
 ===Features=== ===Features===
  
Line 23: Line 24:
    * Gallery view of tagged images    * Gallery view of tagged images
    * Gallery view of all images    * Gallery view of all images
 +   * Slideshow of loved, tagged or all images
  
 Setup requires a Linux host running PHP and apache2. The command Setup requires a Linux host running PHP and apache2. The command
Line 44: Line 46:
 no access controls. no access controls.
  
-Multi-select for tagging and deletion is desirable+Multi-select for tagging and deletion is desirable
 feature which can be added once a simple design feature which can be added once a simple design
-is worked out and implemented.+is worked out.
  
 Multiple tags per photo was not implemented for simplicity Multiple tags per photo was not implemented for simplicity
Line 52: Line 54:
 added later. added later.
  
-===Install===+===Site creation=== 
 + 
 +In this example, a gallery called mrchips is created. 
 + 
 +==Server== 
 + 
 +Install Apache2 with PHP and SQLITE3. 
 + 
 +==Install== 
 + 
 +Create site directory and download.
  
 <code> <code>
-hg clone http://hg.kewl.org/pub/Pinup+sudo mkdir mrchips 
 +sudo chown user mrchips 
 +hg clone http://hg.kewl.org/pub/Pinup mrchips 
 +cd mrchips
 </code> </code>
 +
 +==Config==
 +
 +Create config from template.
 +
 +<code>
 + sed 's/HOSTNAME/mrchips/g' routes/apache.conf > /tmp/mrchips.conf
 +</code>
 +
 +After the config is created above, edit the IP address section then
 +move it to the correct location for your install.
 +
 +Include the config explicitly if required and restart the web service.
 +
 +==Initialise==
 +
 +Unzip any images into the Images directory within the web root.
 +
 +Import the images into the site.
 +
 +<code>
 +./bin/import.php ./Images/
 +</code>
 +
 +===Usage===
 +
 +<wrap right>
 +{{:projects:pinup_love.jpg?100|Love}}
 +{{:projects:pinup_tags.jpg?100|Tags}}
 +{{:projects:pinup_garden.jpg?100|Garden}}
 +{{:projects:pinup_images.jpg?100|Images}}
 +</wrap>
 +
 +When you first visit the site it will land on the Love page. This will
 +contain no images for now. The images link will contain every image
 +imported. On this page you can love images and also create a tag for
 +an image and add that tag to other images to create a group.
 +
 +