Utopian 1-UP : Creating the Parse-server backend

in #utopian-io7 years ago

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

Sort:  

1up-logo.png


You've got a 1UP from the @utopian-1up curation trail. 25 Utopians have upvoted your quality contribution to the open source community.

Join 1UP for better posts and high curation rewards.

1UP is neither organized nor endorsed by Utopian.io!

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

Your contribution cannot be approved yet because only merged Pull Requests will be accepted. See the Utopian Rules. Please edit your contribution to reapply for approval.

You may edit your post here, as shown below:

You can contact us on Discord.
[utopian-moderator]

I am the official project owner and I have now merged the pull request with the main repository.

Hey @stoodkev I am @utopian-io. I have just upvoted you!

Achievements

  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

Coin Marketplace

STEEM 0.21
TRX 0.27
JST 0.040
BTC 102419.62
ETH 3707.14
USDT 1.00
SBD 3.24