Actifit.io Website: Signup & Referrals Development Update

in #actifit6 years ago (edited)

Repository

https://github.com/mcfarhat/actifit-landingpage

Introduction

This development round includes some major improvements and a new functionality to actifit.io, with the core theme being the signup and referral module, as well as a fix for an old issue causing zero-ed visuals of the user's token count and related info.

Technology Stack

The website is built using Vue.js.

Work Done:

  • We have implemented extensive work over the last few weeks to bring this functionality to life. We wanted to create a mechanism to allow users to create an account, while relying on STEEM currency, and whereby Actifit will be able to either use discounted claimed accounts, if there are any (atm we have around 750 available), alternatively, if and when we get a surge, the fallback would be for us to pay for the account using the traditional paid account approach.

  • For this implementation, we created 2 new pages, one for signups (pages/signup.vue), and another for referrals (pages/referrals.vue). We also created a component for the inner display of each referral (components/referral.vue).

  • The signup page auto-generates a password, and a memo key which will be used to identify STEEM account sender.




  • A username validation system has been implemented to ensure the user picks an available and valid username. Issues with username will be displayed underneath the name




  • A dynamic calculation was implemented to fetch current STEEM price, current AFIT price (through our API), and then according to user's chosen USD values, would properly update related numbers.

  • We also implemented a Captcha to avoid issues with bots attempting to abuse the system.

  • Proper validations have been set in place before querying the API to ensure data hasn't been tampered with and to notify user of any potential issues.

  • The signup implementation will be connecting to our API, and keep looking until the funds are found, and then the process continues on the side of the APIs.

  • The fix for the zero-ed numbers showing for logged in users was implemented via adding a watch to the related user value, which will reload the data once it populates.

Commit, other related commits are available on github, but are only minor adjustments.

You might notice that an env file is committed. This happened mistakenly, some of the values therein are no longer used, have been modified, or pause no security risk
Please note that the commits were done using my business account Greateck instead of my own user mcfarhat.

Roadmap

Further continuous improvements will be done on the actifit website, including a potential revamp of the main page content, adding some additional content pages, a complete fitness profile page, more user rank screens...

How to contribute?

You can chat to us on the official actifit discord, or to me in discord private @mcfarhat#6013.
Contributions are accepted as pull requests to the official github repo.
We are having continuous tasks assigned to different contributors to our project. More official tasks are continuously announced :)

GitHub Account

https://github.com/mcfarhat

Sort:  

Great updates!

My wife and brother uses actifit daily and kinda competing theirselves. I wish curating actifit acvitity posts gives me more actifit tokens. :)

Regarding setting up your own image hosting solution, did you consider using steemitimages for that? Since you get the posting keys of the users (That's what I remember from the mobile iOS app.), you can sign images with the posting key and upload it to steemitimages. I am just curious if that's a viable option for the dApp maintainers.


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.

Lol great to hear about your family using Actifit :)
Curation now is different as of V2 reward system, you've been accumulating much more tokens ;) Have a look at your recent balance/transactions.
For steemitimages, you're probably referring to imagehoster? if i remember correctly this also requires you to run your own copy of imagehoster.
I am testing grounds with current approach, hopefully it wont be too costly and we will revisit later if needed.

Thank you for your review, @emrebeyler!

So far this week you've reviewed 3 contributions. Keep up the good work!

Development is very cool and distinctive my friend really
Thank you for your information

Excellent work!
I have just increased my SP delegation to @actifit .
Thanks for the update.

Hi @mcfarhat!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
Feel free to join our @steem-ua Discord server

Hey, @mcfarhat!

Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!

Get higher incentives and support Utopian.io!
Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via SteemPlus or Steeditor).

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!

Coin Marketplace

STEEM 0.26
TRX 0.13
JST 0.032
BTC 61133.31
ETH 2887.29
USDT 1.00
SBD 3.64