Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 1.19 KB

README.md

File metadata and controls

31 lines (25 loc) · 1.19 KB

s3-video-hosting

Prerequisites

  • xampp
  • composer
  • Clone the repo and move its contents into C:\xampp\htdocs\s3\

Add aws-sdk-php

  • Open a command-line terminal
    • Windows Key + R
    • Type cmd and click OK
  • Navigate to the location of your code
    • cd C:\xampp\htdocs\s3\
  • Run composer install to configure the program with the AWS SDK for PHP.
    • The dependency is created by composer.json.

Update config.php

  • Replace the fields in app/config.php with the correct information for your AWS instance
    • DO NOT PUBLISH YOUR CHANGES TO THE REPOSITORY CONFIG.PHP FILE

Run the code

  • Open the XAMPP Control Panel (C:\xampp\control-panel.exe)
  • Start Apache
    • If errors come up, change the port configuration from 80 to 8080.
  • In your browser, go to localhost:80/s3/
    • or localhost:8080/s3/ if you changed the config.
  • Try out any of the scrips you see! :)