Skip to content

ravenrebels/ravencoin-nft-signin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Educational project, showing how you can sign in to a web site with Ravencoin NFT

image

We have a 1 hour 45 minutes youtube video showing how we created this project. https://youtu.be/VXEjw518oWg

The code is sloppy, that's for sure but our intention is to point out, signal the opportunities we have.

Setup a firebase project

Choose "Realtime database"

Set the rules for Realtime database image

{
  "rules": {
    "verificationsbyuserid": {
      "$uid": {         
        ".read": "$uid === auth.uid"
      }
    },
    "users": {
      "$uid": {
        ".write": "$uid === auth.uid",
        ".read": "$uid === auth.uid"
      }
    }
  }
}

Export service account file (JSON) and save it as ./backend/firebaseServiceAccount.json Inkedconsole firebase google com_u_0_project_signin-80421_settings_general_web_MzEwNWM4YmItNTE4Yy00ODY5LTk0ZWItMjQ0MTg3YzQyMDVk_LI

./backend/ravenConfig.json

Update the content. That is enter your username/password and url/port for your Ravencoin core QT Syntax

{
  "rpcUsername": "VerySecret",
  "rpcPassword": "VerySecret",
  "rpcURL": "http://127.0.0.1:8766"
}

build client

change directory to ./client run

npm install

To start local dev server run

npm start

build server

install dependencies by running npm install

To start the backend/server part run node index

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published