This file contains hidden or 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
service firebase.storage { | |
match /b/{bucket}/o { | |
match /{allPaths=**} { | |
// Allow access by all users | |
allow read, write; | |
} | |
} | |
} |
This file contains hidden or 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 APPSPOT_BUCKET_URL = "gs://firebase-storage-demo.appspot.com"; | |
firebase.init({ | |
storageBucket: APPSPOT_BUCKET_URL | |
// any other options | |
}).then(() => { | |
console.log("Firebase init!"); | |
}) |
This file contains hidden or 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
import config from "./config.json"; | |
console.log(config.count); // 42 | |
console.log(config.env); // "debug" |
This file contains hidden or 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
{ | |
"count": 42, | |
"users": [ | |
{"name": "John", "age": 35}, | |
{"name": "Ann", "age": 32}, | |
{"name": "George", "age": 24}, | |
{"name": "Mary", "age": 27}, | |
{"name": "Vivian", "age": 21} | |
], | |
"env": "debug" |
This file contains hidden or 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
Show hidden characters
{ | |
"compilerOptions": { | |
"module": "commonjs", | |
"resolveJsonModule": true, | |
"esModuleInterop": true | |
} | |
} |
NewerOlder