This project is a boilerplate for rapid development on top of the steem network.
I have a number of project Ideas I’m building. The tools available to us as developers are great, steem-js, steemconnect SDK, steemSQL and Piston Lib to name a few. Even with the set of tools available I’ve had a somewhat hard time knowing how to get started and figuring out how to set everything up. To make it a faster onramp for those that come after me I’ve created the steem-connect-node-boilerplate.
See the github repo for setup and instructions - HERE
What does the boilerplate include
- Authentication with SteemConnect
- Get User Profile
- Get Content Feed
- Create Top Level Post
- Upvote Top Level Post
Built on top of the following tools.
Express.js
Lightweight node.js framework to handle, routing, sessions, views, database or any other backend services you could need.
SteemConnect
Steemconnect based user authentication is setup out of the box. Include you details in the config.js file and your app can authenticate a user. When clicking to login a request will be made to steemconnect and the user will be redirected to your app. The access token is stored in a session to allow further requests on behalf of the authenticated user until they logout or it expires.
Creating Posts + Voting
With steemConnect auth enabled this boilerplate has the ability to post and vote on behalf of the user. You can add more scopes in the steemConnect module.
steem-js
While SteemConnect handles authenticated actions steem-js interacts with the blockchain to receive content. The feed page and individual content pages are examples of this. Change /trending/ to /@username/ for example to get users post feed instead.
I wanted to reduce the amount of assumptions in the project as much as possible. There is very minimal css, only used as an example to get you started. Front end javascript is kept to a minimum but example of getting feed and voting are included to get you started.
Let me know if you find this useful or have any questions. ✌️
Posted on Utopian.io - Rewarding Open Source Contributors