Skip to content

Latest commit

 

History

History
47 lines (34 loc) · 1.35 KB

README.md

File metadata and controls

47 lines (34 loc) · 1.35 KB

grabs

Node.js Gyazo grab server including Twitter card integration (optional).

Installation

On your server:

Step 1 - Clone the repo

git clone [email protected]:ralphholzmann/grabs.git
cd grabs
npm install

Step 2 - Edit config.json to your liking

{
  "domain": "example.com", // Domain of your server
  "twitter_username": "jack" // Your Twitter username without the '@'
}

Step 3 - Start the server

NODE_ENV=production PORT=80 node app.js

On your Mac:

Step 1 - Install Gyazo

Step 2 - Copy the sample Gyazo script to /Applications/Gyazo.app/Contents/Resources/script

Step 3 - Open /Applications/Gyazo.app/Contents/Resources/script and modify line 3 to match your domain:

HOST = "example.com"

That's it. Now whenever you launch Gyazo.app, the screen grabs will be saved to your server.

Optional Twitter cards integration

Hop over to the Twitter cards validator in a Webkit browser (you must be logged in to your Twitter account). Click the "Photo" card from the card catalog, then flip over to the "Validate & Apply" tab. Paste in a sample grab URL and validate it. Then apply and wait for confirmation.

Licence

MIT