tttimur / s3-arena

Upload an image to an s3 bucket then use as source for an are.na block

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

S3-Arena server for Shortcuts

experimental

Server to upload an image to an S3 bucket then source the S3 url to create an Are.na block.

Prerequisites

To setup this server you will need

  • AWS_ACCESS_KEY_ID (Amazon Web Services Access Key ID)
  • AWS_SECRET_ACCESS_KEY
  • AWS_REGION (Amazon Web Services S3 Bucket Region)
  • AWS_BUCKET (Amazon Web Services S3 Bucket Name)
  • ARENA_CHANNEL (Are.na Channel, eg: "timur-9kkz4_ts-5i")
  • ARENA_ACCESS_TOKEN (Are.na access token)

Server Installation

  1. npm install
  2. Rename the file .now.json to now.json and populate the env variables with appropriate info
  3. Deploy 2 cloud

Shortcut Flow

  1. Download Shortcuts app
  2. Select Photos
  3. URL: https://your-server.net
  4. Get Content of URL
  • Advanced
  • Method: POST
  • Request Body: Form
  • Fields
    • (File) Key: Body
    • (Variable) Photos
  1. Show Web Page

Shortcut 1

Shortcut 2

License

MIT, see LICENSE.md for details.

About

Upload an image to an s3 bucket then use as source for an are.na block

License:MIT License


Languages

Language:JavaScript 100.0%