BS Update : Added Admin Page for monitoring Transaction / SO FAR I GET 2 TRANSACTION IN BS

in Steem Marketing3 years ago

IMPORTANT NEWS

after I announced yesterday in my previous post that BS can do transactions. So far we have got 2 people who transact in BS. they are @arie.steem and @lapulga. arie.steem converts from SBD to IDR while lapulga converts from STEEM to IDR.

Screen Shot 2021-07-06 at 23.53.34.png

What is BS ?

BS ( Bank STEEM ) is a web-based swap application that I plan to develop in the near future. where later in this application, steemit users from Indonesia can easily buy steem or SBD with rupiah, and vice versa.

What is update today ?

in this update, we just added an admin page to monitor transactions. We intentionally created this admin page locally and we don't host it for security. you can't see the live demo, because we purposely don't host this app for admin. here's the screenshot

Screen Shot 2021-07-06 at 23.58.48.png

why admin page only in local?

we deliberately do not host for security reasons. Because if in local no one can access except the admin only one.

Can we get the code from this application?

Of course, because this application is an open source application. so anyone can see it. I accidentally uploaded this app on my github. you can see at this link: https://github.com/sogatanco/bank-steem.

here my summary code:

process(id){
    var db=firebase.firestore().collection("/transactions");
    db.doc(id).update({
      status:'processing'
    })
  }

  finish(id){
    var db=firebase.firestore().collection("/transactions");
    db.doc(id).update({
      status:'success'
    })
  }

  componentDidMount(){
    this.timerID=setInterval(
      ()=>this.getData(),
      1000)
  }

  componentWillUnmount(){
    clearInterval(this.timerID);
}

  getData(){
    var db=firebase.firestore().collection("/transactions");
    db.get().then(snap=>{
      var dat=[]
      snap.docs.forEach(s=>{
        dat.push({'id':s.id, 'data':s.data()});
      })
      this.setState({data:dat})
    })
  }

Proof of Work

Screen Shot 2021-07-07 at 00.04.41.png

important link

Special thank

kind Regards

@sogata

Sort:  

Good job Broo

 3 years ago 

thank you my bro

Mancappp sekaliii

 3 years ago 

terimakasih

Very nice post

 3 years ago 

thank you

 3 years ago 

Thanks for this.

 3 years ago 

u r welcome

Mantul. Semoga app nya cepat jadi... Salam kenal....

 3 years ago 

terimaksih bang

 3 years ago 

Hello, thank you for contributing to the promosteem channel. we are currently conducting a survey for everyone in promosteem about the level of satisfaction with the promosteem community.

Please fill out the questionnaire that we have provided
thank you

questionnaire link : https://forms.gle/jd1bVvaeUubVgwV49

regards
arie