source: pixabay.com
GitHub repo: https://github.com/mahdiyari/dblog-backend
PR: https://github.com/mahdiyari/dblog-backend/commit/6cdd695fd9301edfd1d9fed15b2906b07faaec73
20 days ago, I announced a new opensource project: https://steemit.com/onsteem/@mahdiyari/announcement-onsteem-a-better-interface-on-the-steem-blockchain
I started developing back-end for this project called Dblog.io (new name)!
We will have a back-end here and a front-end here
A demo will be available here: https://dev.onsteem.com (back-end and front-end connected)
Codes
Note: if you are not a developer, you can skip this part!
Explaining the structure of dblog-backend:
Main server file is api.js
which will be started with npm start
The config file is config.js
which includes all needed variables!
Under the /conf/
folder, needed configurations will be added. Currently, we have steemconnect/index.js
for initializing steemconnect and /mysql/index.js
for creating a MySql connection.
Under the /blockchain_apis/
needed RPC calls will be added. Currently, there is a database
API get_dynamic_global_properties.js
Under the /login_apis/
needed functions for the login process will be added. Currently, we added a confirm_process.js
for assigning a unique hex string (called hash_key
) to the logged in users.
We will keep that unique hash_key
instead of access_token
in the database for next operations which will help to reduce security concerns.
confirm_process
will check to see there is any hash_key
in the request, then it will check that hash_key
against the database if that user already was in the database. if there was not a hash_key
in the request, confirm_process
will assign a new hash_key
for that user after checking login credentials.
We will use dynamic_global_properties
in the front-end
for some calculations. Like converting VESTS to the STEEM
All codes are explained by comments. (a Javascript developer will perfectly understand how this back-end works)
This contribution submitted to the https://utopian.io
Support this new project by your upvotes. Thanks for your great support.
Regards,
2018-07-05
It's always great and a good news to have new projects that intend to use the steem blockchain in another than busy.org, steemit or steempeak.
A few remarks:
https://github.com/mahdiyari/dblog-backend/commit/6cdd695fd9301edfd1d9fed15b2906b07faaec73#diff-2d5bbda346ebb54b9745d10f2fb5b1b6R21 => you shouldn't hardcode this type of things but use environment variables.
https://github.com/mahdiyari/dblog-backend/commit/6cdd695fd9301edfd1d9fed15b2906b07faaec73#diff-596cfd721b3662ec89bbf901119d32beR8 => is there a reason for mixing arrow function notation with classic notation ?
https://github.com/mahdiyari/dblog-backend/commit/6cdd695fd9301edfd1d9fed15b2906b07faaec73#diff-dc8e73d678a3fb5ee0b7596aba808445R12 => leaving a few debug tests behind ? :D
https://github.com/mahdiyari/dblog-backend/commit/6cdd695fd9301edfd1d9fed15b2906b07faaec73#diff-dc8e73d678a3fb5ee0b7596aba808445R67 => callback hell
Good luck for the next update!
Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.
To view those questions and the relevant answers related to your post, click here.
Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]
Hello,
Thanks for your remarks! much appreciated:)
I would like to see your review on the all of my next contributions.
I'll try to do that ! ;)
Hello, I edited codes
https://github.com/mahdiyari/dblog-backend/commit/b5b525e3932f33509fd9e4b169a8b548b35b1df6
https://github.com/mahdiyari/dblog-backend/commit/deaffc5ede6d57cf76614c956fbbe86aad92ba5f
can you please take a quick look? Thanks
Make a contribution to utopian ;)
Done
Thank you
Hey @gregory.latinier
Here's a tip for your valuable feedback! @Utopian-io loves and incentivises informative comments.
Contributing on Utopian
Learn how to contribute on our website.
Want to chat? Join us on Discord https://discord.gg/h52nFrV.
Vote for Utopian Witness!
Hey @mahdiyari
Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!
Want to chat? Join us on Discord https://discord.gg/h52nFrV.
Vote for Utopian Witness!
well i will surely try this new platform.
Perfect thank you for valuable facts
I am happy to know that we will soon have new work tools. Successes in your tasks @mahdiyari
Great work!! You have been very busy!!
Many interesting things are happening in blockchain!
The world will never be the same next year!
Good luck!
As you said that DBlog.io is developed based on steem blockchain, will article post through this site be live on steemit.com too?
Of course!
hello mahdiyari i give you witness upvote.
Thank you
you welcome.
awesome - best of luck
Good to see the Steem eco system grow! Looking forward to trying it.
@mahdiyari ,,, yes friends its realy good platform thanks mahdiyari for sharing this inforamtion with us
Hello sir i think steemfollower are not working i have 1.98sbd in this but i have not received any yet.
It doesn't work like that. That amount means the amount of votes you will get. You can sell it on the market though!
No bro you don't understand what i say
If they give me any amount than it must reduce from my steemfillowers account but i have not received any thing and also not reduce any amount.it is same and also i daily upvote other its only increas.
Ah. I used to have that problem. If you post in Popular tags, there is a lot of competition, so you basically need to boost at 2 time payout or more to get steady upvotes, otherwise with all those new members you get snowed under. That or have dedicated people who follow you anyway, I am lucky to have these guys!
I don't mind paying @ 2 times or more, I see it as valuable promotion.
Gd to the steem is growing
@mahdiyari this is an awesom project. You have released the demo but when the actual project is launching? Can't wait to try it out...
I am not getting upvotes from steem follower ,,what i hav to done