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
exports.handler = async (event) => { | |
let min = 0; | |
let max = 10; | |
let randomNumber = Math.floor(Math.random() * max) + min; | |
return randomNumber; | |
}; |
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
<header> | |
<img class="logo" title="Reset Game" src="https://upload.wikimedia.org/wikipedia/commons/thumb/9/98/International_Pok%C3%A9mon_logo.svg/2000px-International_Pok%C3%A9mon_logo.svg.png" alt="Pokemon"> | |
</header> | |
<main> | |
<div class="instructions"> | |
<p>Choose your hero</p> | |
</div> | |
<section class="characters"></section> |
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 functions = require('firebase-functions'); //for firebase storage | |
const firebase = require('firebase-admin'); //for firebase database | |
const express = require('express'); // load express from node_modules | |
const bodyParser = require('body-parser'); | |
const app = express(); // instantiate express to use its functionality | |
const PORT = process.env.PORT || 3000; // set a port. Look to environment variable if avaialble | |
app.engine('hbs', engines.handlebars); // use consolidate to attach handlebars templating | |
app.set('views', './views'); // set views folder to our directory |
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 functions = require('firebase-functions'); //for firebase storage | |
const firebase = require('firebase-admin'); //for firebase database | |
const express = require('express'); // load express from node_modules | |
const app = express(); // instantiate express to use its functionality | |
const PORT = process.env.PORT || 3000; // set a port. Look to environment variable if avaialble | |
app.engine('hbs', engines.handlebars); // use consolidate to attach handlebars templating | |
app.set('views', './views'); // set views folder to our directory | |
app.set('view engine', 'hbs'); // use our engine |
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 functions = require('firebase-functions'); //for firebase storage | |
const firebase = require('firebase-admin'); //for firebase database | |
const express = require('express'); // load express from node_modules | |
const app = express(); // instantiate express to use its functionality | |
const PORT = process.env.PORT || 3000; // set a port. Look to environment variable if avaialble | |
const firebaseApp = firebase.initializeApp( | |
functions.config().firebase // use credentials from configured project | |
); |
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
[ { | |
"name" : "bill's house", | |
"color" : "white", | |
"address" : "224 NE 111st", | |
"rooms" : 4, | |
"garage" : null | |
}, { | |
"name" : "steve's house", | |
"color" : "yellow", | |
"address" : "5101 NE 111st", |
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
{ | |
"hosting": { | |
"public": "public", | |
"ignore": [ | |
"firebase.json", | |
"**/.*", | |
"**/node_modules/**" | |
], | |
"rewrites" : [{ | |
"source" : "**", |