First Step to implementing a 1UP button into Utopian for suggesting the curation trail to vote on outstanding contributions to the Utopian platform, I've created a Parse-Server backend running on Heroku. The Parse-Server will allow to interact easily with the mongoDB.
1UP is an initiative from @flauwy, who discussed the integration on SteemPlus in this article.
Step 1 : Preparing the back end
That's what I ve just done. You can try it right now by sending requests via cURL:
curl -X POST https://utopian-1up.herokuapp.com/parse/classes/Suggestions \
-H "X-Parse-Application-Id: efonwuhf7i2h4f72h3o8fho23fh7" \
-H "X-Parse-Master-Key: wpijeipfjwipefiwhepifhwipfhpwei" \
-H "Content-Type: application/json" \
-d @- << EOF
{
"from":"someone",
"url": "url_"of_an_article }
EOF
This works and populate the database. I will change the Master Key tomorrow to prevent abuses, so this cURL won't work anymore, it is just for demonstration purpose.
Following steps
- Prepare a page showing all those suggestions
- Using LiveQuery to make that page update in real time
- Integrate SteemConnect on SteemPlus
- Code the 1UP button to appear on Utopian for SteemPlus users.
You can find the Pull Request here.
Posted on Utopian.io - Rewarding Open Source Contributors