Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ build/Release
# Dependency directories
node_modules/
jspm_packages/
public/bundle.js

# Typescript v1 declaration files
typings/
Expand All @@ -56,5 +57,3 @@ typings/

# dotenv environment variables file
.env

bundle.js
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"dotenv": "^4.0.0",
"dotenv-webpack": "^1.4.3",
"express": "^4.15.2",
"firebase": "^3.0.2",
"jquery": "^2.2.1",
"react": "^0.14.7",
"react-dom": "^0.14.7",
Expand Down
16 changes: 16 additions & 0 deletions playground/firebase/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import firebase from 'firebase';

// Initialize Firebase
var config = {
apiKey: process.env.API_KEY,
authDomain: process.env.AUTH_DOMAIN,
databaseURL: process.env.DATABASE_URL,
projectId: process.env.PROJECT_ID,
storageBucket: process.env.STORAGE_BUCKET,
messagingSenderId: process.env.MESSAGING_SENDER_ID
};
firebase.initializeApp(config);

firebase.database().ref().set({
appName: 'Todo App'
});
49,396 changes: 0 additions & 49,396 deletions public/bundle.js

This file was deleted.

2 changes: 2 additions & 0 deletions src/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import Main from 'Main';
const actions = require('actions');
const store = require('configureStore').configure();

import './../playground/firebase/index';

store.subscribe(() => {
console.log('New state:', store.getState());
});
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = {
},
plugins: [
new Dotenv({
path: '.env'
path: './.env'
}),
new Webpack.ProvidePlugin({
'$': 'jquery',
Expand Down