Permalink
Browse files

Remove API keys, add API keys to env file

  • Loading branch information...
twhite96 committed Sep 12, 2018
1 parent 38ff789 commit e7cf54a5e09eca5eedec2cf343c1e451d8c7afc3
Showing with 17 additions and 161 deletions.
  1. +1 −0 .gitignore
  2. +10 −155 package-lock.json
  3. +1 −2 package.json
  4. +4 −3 src/base.js
  5. +1 −1 src/components/NotFound.js
View
@@ -74,3 +74,4 @@ website/translated_docs
website/yarn.lock
website/node_modules
website/i18n/*
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -12,7 +12,6 @@
"re-base": "^4.0.0",
"react": "^16.4.2",
"react-dom": "^16.4.2",
"react-helmet": "^5.2.0",
"react-marked-markdown": "^1.4.6",
"react-router-dom": "^4.3.1",
"react-scripts": "^1.1.5",
@@ -22,7 +21,6 @@
"reactjs-popup": "^1.1.1",
"snyk": "^1.82.1",
"spell-checker": "0.0.26",
"tui-editor": "^1.2.2",
"write-good": "^0.13.0"
},
"scripts": {
@@ -33,6 +31,7 @@
},
"devDependencies": {
"cypress": "^3.1.0",
"dotenv": "^6.0.0",
"eslint": "^5.0.0",
"eslint-plugin-react": "^7.9.1",
"react-testing-library": "^4.0.0"
View
@@ -1,10 +1,11 @@
import Rebase from 're-base';
import firebase from 'firebase';
const require('dotenv').config();
const firebaseApp = firebase.initializeApp({
apiKey: "AIzaSyD6RvaQ565u24lNMyIBaAEIo9AGJcSc_a0",
authDomain: "checkyoself-565d3.firebaseapp.com",
databaseURL: "https://checkyoself-565d3.firebaseio.com",
apiKey: process.env.REACT_APP_API_KEY,
authDomain: process.env.REACT_APP_AUTH_DOMAIN,
databaseURL: process.env.REACT_APP_DATABASE
});
const base = Rebase.createClass(firebaseApp.database());
@@ -12,7 +12,7 @@ function NotFound(props) {
<img src={broken} alt="broken..." />
<p>Well...this is embarrassing. Whatever you were looking for isn't here.</p>
</div>
)
);
}

0 comments on commit e7cf54a

Please sign in to comment.