Szymon Wolak avatar

Steemblr development update 04

snwolak

Published: 30 Jun 2018 › Updated: 30 Jun 2018Steemblr development update 04

Steemblr development update 04

Untitled-Design.md.jpg

Steemblr is open source microblogging platform powered by steem blockchain . It allows user to post and explore content which is smaller than a traditional blog.

You can check developer verion here: https://steemblr.com

Repository

https://github.com/snwolak/steemblr

New Features

Post types in explore section

Every page except trending is now loaded from database accordingly to its type. Database contains posts published only on steemblr.

It was done by replacing steem-js api calls with firebase queries, app is saving posts to database in same format so there was no need for unnessessery work. To decide which post type should be loaded there was added switch statement.

https://github.com/snwolak/steemblr/commit/fddca6cdfee359b1c7aaf34c43bbe7f2142258ff

Loading post by author

To avoid app crashing and provide better experience, modal and main blog view are now loading author posts from firebase. Similar to explore view it was implemented by replacing steem-js api calls with firebase queries. To check if user exist in database, before rendering, function checks database. If user doesn't exist instead of blog, app renders 'Not found' page.

https://github.com/snwolak/steemblr/commit/1900d32eee648c5720c29411d701b19be3e7a557
https://github.com/snwolak/steemblr/commit/cbeb39e9e6d2028c62eb08535326007732b5e974
https://github.com/snwolak/steemblr/commit/d5ea18140da49bbea6f7127c18536226a86eef79

Not found page

Default 404 page created to show when user tries to enter non existing page in application.

404.jpg

It was created with styled-components and react-router to redirect user to homepage.

https://github.com/snwolak/steemblr/commit/004ddf257a94fc8c3175adacc86b1fbb1ba84d51

Tags Checking

User post is automaticly categorized as adult content or not. It is done by checking tags, when user submits new post. Function searches for NSFW tags by summing user tags and tags that needs to be filtered together and if it finds duplicates post will be saved as NSFW in database, it doesn't affect steem post itself.

https://github.com/snwolak/steemblr/commit/3013b17777b237b5d5e5706981702ebf7397def8
https://github.com/snwolak/steemblr/commit/4cfab86950f30f5a115909767e38b114d57e3eaf

Github Account

https://github.com/snwolak

Since I'm going on vacation there won't be update next week.
Also I submitted steemblr to google cloud startup program and got 3000$ in google cloud credits which is great!
startup.md.jpg

Leave Steemblr development update 04 to:

Written by

Creator of steemblr.com, Front-end Developer, musician

Read more #utopian-io posts


Best Posts From Szymon Wolak

We have not curated any of snwolak's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From Szymon Wolak