This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const numberOfRelationJSONFiles = 131; // NOTE: Change this to the number of json files in the relation folder | |
for (let i=1; i <= numberOfRelationJSONFiles; i++ ) { | |
let filename = ``; | |
if (i < 10) { | |
filename = `00000${i}` | |
} | |
if (i < 100 && i > 9) { | |
filename = `0000${i}` | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// API | |
router.get('/words', async (req, res) => { | |
const wordsRef = db.ref(`words`).once('value'); | |
const usersRef = db.ref(`users`).once('value'); | |
const values = await Promise.all([wordsRef, usersRef]); | |
const wordsVal = values[0].val(); | |
const userVal = values[1].val(); | |
res.sendStatus(200); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying my Blockstack ID is secured with the address 14YhhuFs7n6FqFSr3vKDKU5ktJMqcEw9Lt https://explorer.blockstack.org/address/14YhhuFs7n6FqFSr3vKDKU5ktJMqcEw9Lt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<script src="http://www.parsecdn.com/js/parse-latest.js"></script> | |
</head> | |
<body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Parse.initialize("<APP_ID GOES HERE>"); | |
Parse.serverURL = '<URL GOES HERE>'; | |
var user = new Parse.User(); | |
user.set("username", "[email protected]"); | |
user.set("password", "pass001"); | |
user.set("gender", "male"); | |
user.set("role", "manager"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<script src="http://www.parsecdn.com/js/parse-latest.js"></script> | |
</head> | |
<body> |