Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Example Play! app that uploads files to Amazon S3

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 app
Octocat-spinner-32 conf
Octocat-spinner-32 public
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
README.md

Make sure you have Play 1.2.3 installed.

Run Locally

Clone the git repo

git clone git@github.com:jamesward/plays3upload.git

Move to the project dir

cd plays3upload

Download the Play! Deps

play deps --sync

Set the AWS environment vars

export AWS_ACCESS_KEY="YOUR_AWS_ACCESS_KEY"
export AWS_SECRET_KEY="YOUR_AWS_SECRET_KEY"
export S3_BUCKET="AN_AWS_UNIQUE_BUCKET_ID"

Or switch to the in-memory database by updating the conf/application.conf file

Run the app

play run

Run on Heroku

Clone the git repo

git clone git@github.com:jamesward/plays3upload.git

Move to the project dir

cd plays3upload

Create the app on Heroku

heroku create -s cedar

Set the AWS environment vars on Heroku

heroku config:add AWS_ACCESS_KEY="YOUR_AWS_ACCESS_KEY" AWS_SECRET_KEY="YOUR_AWS_SECRET_KEY" S3_BUCKET="AN_AWS_UNIQUE_BUCKET_ID"

Upload the app to Heroku

git push heroku master

Open the app in the browser

heroku open
Something went wrong with that request. Please try again.