Provide a reliable service that will look at a Feedbin.com account for starred articles and create bookmarks on the user's Pinboard.in account.
Feedbin will give us an array of IDs. We can then use this to fetch each one.
Feedbin Content:
[
{
"id": 2077,
"feed_id": 135,
"title": "Objective-C Runtime Releases",
"url": "http:\/\/mjtsai.com\/blog\/2013\/02\/02\/objective-c-runtime-releases\/",
"author": "Michael Tsai",
"content": "<p><a href=\"https:\/\/twitter.com\/bavarious\/status\/297851496945577984\">Bavarious<\/a> created a <a href=\"https:\/\/github.com\/bavarious\/objc4\/commits\/master\">GitHub repository<\/a> that shows the differences between versions of <a href=\"http:\/\/www.opensource.apple.com\/source\/objc4\/\">Apple\u2019s Objective-C runtime<\/a> that shipped with different versions of Mac OS X.<\/p>",
"summary": "Bavarious created a GitHub repository that shows the differences between versions of Apple\u2019s Objective-C runtime that shipped with different versions of Mac OS X.",
"published": "2013-02-03T01:00:19.000000Z",
"created_at": "2013-02-04T01:00:19.127893Z"
}
]
Supported options for bookmarking
options = {
description: 'The title of the bookmark',
url: 'http://github.com',
toread: 'yes',
tags: 'devtools, git',
shared: 'yes'
};
If we successfully bookmark an item we want to unstar it in Feedbin.
This project uses the Serverless framework. You can get started by following this guide.
You will need to following things set up before you can contribute to this project.
nvm use
Install all the things
npm install
For convenience install the AWS CLI. Then configure your new CLI by following this guide
Copy the example.env.js
to a new file named .env.js
and add your own settings there.
Run npm run offline
npm run sls -- invoke -f functionName -l
npm run sls -- logs -f hello -s dev -t
Tail the logs on dev for function named hello.
npm run sls -- deploy
npm run sls -- deploy -f functionName -s dev
Deploys the function named functionName to the dev environment.
The default environment we use is dev so if you wanted to deploy to prod environment you would do -s prod
.
npm run sls -- deploy -s prod