Utopian 1-UP : Creating the Parse-server backend

@stoodkev · 2017-12-14 09:50 · utopian

image.png

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


#utopian-io #steemdev #dev #news #utopian-1up
Payout: 0.000 HBD
Votes: 62
More interactions (upvote, reblog, reply) coming soon.