Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 1.37 KB

README.md

File metadata and controls

33 lines (22 loc) · 1.37 KB

Google Cloud Storage Bucket Browser

Description

This is a simple web-based application to browse the contents of a bucket from the GCS upon user authentication.

It was built using the Google PHP cloud client library and jstree.

The storage-metabucket-javascript and storage-getting-started-php projects were used as a starting point.

This build was tested in PHP version 7.1 using the official PHP docker image php:7.1-apache

Prerequisites:

google-cloud-php

$ composer require google/cloud

thephpleague/oauth2-google

$ composer require league/oauth2-google

OAuth 2.0 client

Rename conf.demo.php to conf.php and fill in with your credentials information from OAuth 2.0 client credentials previously created on Google Developers APIs

Running the application using Docker:

Run the following command in the project directory:

$ docker run -d -p 80:80 --name my-apache-php-app -v "$PWD":/var/www/html php:7.1-apache