Figuring out structure
This commit is contained in:
17
src/bootstrap.js
vendored
Executable file
17
src/bootstrap.js
vendored
Executable file
@ -0,0 +1,17 @@
|
||||
|
||||
console.info('Bootstrapping...');
|
||||
|
||||
import { createStore } from 'redux'
|
||||
import reducer from './reducers/index'
|
||||
import Services from './services/Services'
|
||||
|
||||
// start all our services
|
||||
Promise.all(Services.setup())
|
||||
.then(() => {
|
||||
console.info('Services started...');
|
||||
});
|
||||
|
||||
// create our global store
|
||||
let store = createStore( reducer, {} );
|
||||
|
||||
export default store;
|
||||
Reference in New Issue
Block a user