Super simple screenshot sharing using your own S3 bucket, built with Node.js
- You start Kloud.
- It watches a directory of your choice, for new files matching your defined criteria. (In my case it watches my Desktop for new screen shot pngs.)
- When a new file is detected, Kurtz Kloud saves the file to a bucket of your choice in S3, copies the file's S3 URL to your clipboard, and displays a notification.
- Node.js (http://nodejs.org/)
git clone git@github.com:ltk/kurtz-kloud.git
cd kurtz-kloud
npm install
cp config.json.example config.json
Edit config.json
to suit your needs. Your S3 bucket must already exist. Kloud will not create a bucket if the configured bucket is not found.
If you want your images to be publicly accessible (if you want to share them with other people) you may need to add a bucket policy to your S3 bucket similar to the one below that makes the getObject action across the entire bucket accessible to everyone:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AddPerm",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::YOUR_BUCKET_NAME_HERE/*"
}
]
}
cd kurtz-kloud
npm start