Coder Social home page Coder Social logo

vicxyz1 / publishr-online Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 2.01 MB

Schedule posting your photos on Flickr. Project ported in Laravel 5.5

Home Page: https://flickr.mediashare.ro

License: GNU General Public License v3.0

PHP 84.90% Vue 0.26% HTML 14.84%
flickr laravel5 flicker-api schedule flickr-oauth-library

publishr-online's Introduction

Photo Publishr Online

Upload now, publish when you want on Flickr

v2.0 Project ported to Laravel framework

Description

Schedule when your Flickr photos will be published for public

Available online:

http://publishr.online

Features

  • Flickr OAuth supported
  • Schedule the publishing of private photos and make them as new
  • Add photos to groups when they become public

Installation

Requirements:

  • PHP7+
  • MySql/MariaDB/Percona 5.6+
  • Nginx/Apache

Download the tarball or clone the source code:

git clone https://github.com/vicxyz1/publishr-online.git 

If you don't have already installed Composer (https://getcomposer.org/), you should do so. Then, in the project directory install the packages required:

composer install

Create the database and the user for the project using your choice (mysql command line or phpMyAdmin)

Also, you should have already your Flickr API_KEY and API_SECRET for the application.

Configure the application settings, but first copy the example file in the project directory:

cp .env.example .env

then edit the database settings and fill the API keys.

Create the database tables:

php artisan migrate

Generate the APP_KEY:

php artisan key:generate

Make sure storage folder is writable by http server. E.g:

chgrp -R www-data storage bootstrap/cache
chmod -R g+w+r storage bootstrap/cache  

For production only, run the optimizations:

Change APP_ENV to production and APP_DEBUG to false, then

php artisan config:cache
php artisan route:cache

composer install --no-dev
composer dumpautoload -o

Install cron:

* * * * * php /path-to-your-project/artisan schedule:run >> /dev/null 2>&1

For hostings with only Apache server make sure:

  • mod_rewrite_ enabled
  • directory root is set to public folder

Nginix vhost file example:

server {
    listen 80;
    listen 443 ssl http2;
    server_name publishr.online;
    root "/home/user/publishr-online/public";

    index index.html index.htm index.php;

    charset utf-8;

    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }

    location = /favicon.ico { access_log off; log_not_found off; }
    location = /robots.txt  { access_log off; log_not_found off; }

    #access_log off;
    access_log  /home/user/publishr-online/storage/logs/www-access.log;
    error_log  /home/user/publishr-online/storage/logs/www-error.log error;

    sendfile off;

    client_max_body_size 100m;

    location ~ \.php$ {
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        fastcgi_pass unix:/var/run/php/php7.1-fpm.sock;
        fastcgi_index index.php;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        

        fastcgi_intercept_errors off;
        fastcgi_buffer_size 16k;
        fastcgi_buffers 4 16k;
        fastcgi_connect_timeout 300;
        fastcgi_send_timeout 300;
        fastcgi_read_timeout 300;
    }

    location ~ /\.ht {
        deny all;
    }

 #   ssl_certificate     /etc/nginx/ssl/publishr.local.crt;
 #   ssl_certificate_key /etc/nginx/ssl/publishr.local.key;
}

publishr-online's People

Contributors

vicxyz1 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

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.