-
-
Notifications
You must be signed in to change notification settings - Fork 755
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
86 changed files
with
3,377 additions
and
906 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# JSON string with a service account credentials for Firebase Admin SDK | ||
# https://firebase.google.com/docs/admin/setup | ||
|
||
FIREBASE_CREDENTIALS= | ||
|
||
# Firebase Config for the client-side app | ||
|
||
REACT_APP_FIREBASE={"apiKey":"AIzaSyAsuqpqt29-TIwBAu01Nbt5QnC3FIKO4A4","authDomain":"react-firebase-graphql.firebaseapp.com","databaseURL":"https://react-firebase-graphql.firebaseio.com","projectId":"react-firebase-graphql","storageBucket":"react-firebase-graphql.appspot.com","messagingSenderId":"564620986275"} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"projects": { | ||
"default": "react-firebase-graphql" | ||
"prod": "react-firebase-graphql", | ||
"dev": "react-firebase-dev" | ||
} | ||
} |
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,18 @@ | ||
{ | ||
// Example: | ||
// | ||
// "indexes": [ | ||
// { | ||
// "collectionId": "widgets", | ||
// "fields": [ | ||
// { "fieldPath": "foo", "mode": "ASCENDING" }, | ||
// { "fieldPath": "bar", "mode": "DESCENDING" } | ||
// ] | ||
// } | ||
// ] | ||
"indexes": [] | ||
"indexes": [ | ||
{ | ||
"collectionId": "stories", | ||
"fields": [ | ||
{ "fieldPath": "approved", "mode": "ASCENDING" }, | ||
{ "fieldPath": "authorId", "mode": "ASCENDING" } | ||
] | ||
}, | ||
{ | ||
"collectionId": "stories", | ||
"fields": [ | ||
{ "fieldPath": "approved", "mode": "DESCENDING" }, | ||
{ "fieldPath": "createdAt", "mode": "DESCENDING" } | ||
] | ||
} | ||
] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/** | ||
* React Starter Kit for Firebase | ||
* https://github.com/kriasoft/react-firebase-starter | ||
* Copyright (c) 2015-present Kriasoft | MIT License | ||
*/ | ||
|
||
const relayPlugin = require.resolve('babel-plugin-relay'); | ||
|
||
module.exports = { | ||
babel(config, { target }) { | ||
return { | ||
...config, | ||
plugins: [ | ||
...config.plugins, | ||
!config.plugins.some(x => x === relayPlugin) && | ||
require.resolve('babel-plugin-relay'), | ||
].filter(Boolean), | ||
}; | ||
}, | ||
|
||
webpack(config, { target }) { | ||
if (target === 'node') { | ||
return config; | ||
} | ||
|
||
if (target === 'browser') { | ||
return config; | ||
} | ||
|
||
return config; | ||
}, | ||
}; |
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
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
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
Oops, something went wrong.