redux-imgur Redux imgur uploader
FEATURES
- Service architecture (redux-manager powered)
- Journaling (redux-journal powered)
- Persist state (PouchDB powered)
- Dynamic service configuration (state.config):
- docsMax = 2 - maximum docs in state.docs
- docsMaxOverRemove: true - remove old images over docsMax
Dependencies
npm i -S isomorphic-fetch
INSTALL
Stable
npm i -S redux-imgur
Unstable
npm i -S lokhmakov/redux-imgur
EXAMPLES
NODE-API
const api = managermanager const fileToBase64 = const clientID = 'adcf840e0bf408c'const imageBase64 = api
PERSIST
const db = managermanager const fileToBase64 = const clientID = 'adcf840e0bf408c'const imageBase64 = manager
REACT
client.js
const service1 = 'imgur'const service2 = 'imgur2'const service3 = 'imgur3' managerconst store = manager const ImgurPaper1 = ImgurPaper const muiTheme = const render = ReactDOM