Skip to content

Commit

Permalink
Add gundb
Browse files Browse the repository at this point in the history
  • Loading branch information
eriteric committed Mar 21, 2017
1 parent eed83c9 commit f682e0c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions app/initialize.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@ import ReactDOM from 'react-dom';
import React from 'react';
import App from 'components/App';

var Gun = require('gun');
var gun = new Gun({
file: 'data.json',
web: App,
s3: {
key: '', // AWS Access Key
secret: '', // AWS Secret Token
bucket: '' // The bucket you want to save to
}
});


document.addEventListener('DOMContentLoaded', () => {
ReactDOM.render(<App />, document.querySelector('#app'));
});
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"build": "brunch build --production"
},
"dependencies": {
"gun": "^0.6.6",
"react": "^15.4",
"react-dom": "^15.4"
},
Expand Down

0 comments on commit f682e0c

Please sign in to comment.