From 17ff8aec3a0d2e0a520849c42c40a154a0831495 Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Mon, 22 May 2023 15:37:34 -0500 Subject: initial commit --- README.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 README.md (limited to 'README.md') diff --git a/README.md b/README.md new file mode 100644 index 0000000..b04d9e9 --- /dev/null +++ b/README.md @@ -0,0 +1,29 @@ +# Michelangelo - A Tumblr Web Client +A quick and easy web client for Tumblr written in PHP to display pictures and videos in a pleasing gallery. + +## Installation +1. To create a Tumblr application and get your consumer key/secret pair, [create an app on the Tumblr site](https://www.tumblr.com/oauth/apps). +2. Set your environment variables in an `.htaccess` file. For example, + +```env +# Environment Variables +SetEnv CONSUMER_KEY "" +SetEnv CONSUMER_SECRET "" +``` + +3. Add logic to your `.htaccess` file to ensure all URLs are processed by `index.php`. + +```conf +# Handle all paths and pages +# FallbackResource /index.php +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d +RewriteRule ^ index.php [L] +``` + +4. Git clone this repository into the web directory where you want the client to be served. +5. Done! You (and your users) can now login. The site will automatically redirect you to the Tumblr login page if you are not already authenticated. + +### Gallery + +![](https://img.cleberg.net/michelangelo/gallery.png) -- cgit v1.2.3-70-g09d2