Skip to content

hfuruya/p-share

Repository files navigation

Photo Share

Overview

This repository is for testing the Google Drive API.

Description

This is the Test Service.

With Google Drive API, you can share photos, movies, and more.

Only one service account owns their files, so it doesn't take up space on the person uploading it.

Demo

Image

Requirement

PHP ^ 8.1

( Local Dev Env : RockyLinux 9 on Docker Desktop ^ 4.19.0 )

Usage

Example : config.php

// ID
define("ID", "your_event_id");

// drive id
define("DRIVE_ID", "your_drive_id");

// limit upload num
define("MAX_UPLOAD_FILE_NUM", "5");

// limit upload file size(MB) per file
define("MAX_UPLOAD_SIZE_MB_PER_FILE", "50");

// radomize auth code
define("AUTH_CODE_ADMIN", "your_auth_code");

// user type
define("USER_TYPE_GENERAL", 0);
define("USER_TYPE_ADMIN", 1);

// limit display num per page
define("PER_PAGE", 10);

// version
define("VERSION", "202310150000");

Install

$ git clone this repository

$ composer install

Please configure OAuth by referring to here.

Only Local Dev

$ cd docker

$ docker-compose -p p-share up -d

$ docker exec -u 0 -it web bash -c "composer install"

You can access to

Author

License

MIT license

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published