Giter VIP home page Giter VIP logo

reglog's Introduction

reglog

OOP Login and registration system that allows file upload to Google Cloud bucket using JSON API

Description

This is just a simple PHP OOP login and registration system, that you can tweak to your taste.

The purpose of the task is to be able to upload files to Google Cloud Bucket and also to fetch the objects from the bucket.

Simple Flow

A user login or register on the platform (if don't have an account before). He is directed to the dashboard where he see an upload form... On media file (only accept, image, audion, and video) upload a frontend(jquery), and backend(php) check is made to validate the submission. On success, PHP make a cURL call to Google Cloud JSON API, to upload it on the project bucket.

  • The user can move the media file uploaded to thrash, that means it should no longer show on the dashboard. All this are simplified with jQuery Ajax.

  • The user can as well restore the media file back to file manager.

What you need

Create a project on Google cloud with your Gmail Account if you don't have.

Follow the quickstart tutorial on the dashboard, it is very simple to create a bucket, the bucket will serve as a container for the files you will be uploading... You can create many buckets as you wish.

I am hosting the script on Heroku You will need to create an account for that if you don't already have... And to manage the MySQL, this was achieved using Heoku Addon(ClearDB), please if all this are strange, you can google them up. I can also be available to put you through.LIKE I SAID, THIS RESPOSITORY WAS CREATED FOR A TASK.

Configuration

Download the script on your local drive, and enter the core and open the init Change the host, username, password that was generated for you from ClearDB or you will be using.

Open the process.php on the root folder, and enter the Google OAuth Token, which was created for you while creating the project on Google Cloud Bucket, you can also generate one here which will always be regenerated every 3600secs. >>> Google OAuth Playgroud.

Database

Upload the reglog.sql to the database you created. if created using Heroku addon(ClearDB), you can achieve that with Workbench.

All well and good?

Navigate to the project URL on your browser...

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.