├── .eslintrc.json ├── .gitignore ├── .nvmrc ├── LICENSE ├── README.md ├── app.js ├── certs └── .keep ├── config.js ├── index.js ├── package.json ├── routes ├── devicesRouter.js └── dispatchRouter.js ├── services ├── fileReader.js ├── logger.js └── wsSender.js ├── store ├── actionTypes.js ├── actions.js ├── index.js ├── initialState.js ├── reducer.js ├── sideEffects.js └── sideEffectsMiddleware.js └── wsApp.js /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "brainhub" 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adam-golab/sonoff-server/HEAD/.gitignore -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | 8 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adam-golab/sonoff-server/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adam-golab/sonoff-server/HEAD/README.md -------------------------------------------------------------------------------- /app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adam-golab/sonoff-server/HEAD/app.js -------------------------------------------------------------------------------- /certs/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adam-golab/sonoff-server/HEAD/config.js -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adam-golab/sonoff-server/HEAD/index.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adam-golab/sonoff-server/HEAD/package.json -------------------------------------------------------------------------------- /routes/devicesRouter.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adam-golab/sonoff-server/HEAD/routes/devicesRouter.js -------------------------------------------------------------------------------- /routes/dispatchRouter.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adam-golab/sonoff-server/HEAD/routes/dispatchRouter.js -------------------------------------------------------------------------------- /services/fileReader.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adam-golab/sonoff-server/HEAD/services/fileReader.js -------------------------------------------------------------------------------- /services/logger.js: -------------------------------------------------------------------------------- 1 | module.exports = console; 2 | -------------------------------------------------------------------------------- /services/wsSender.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adam-golab/sonoff-server/HEAD/services/wsSender.js -------------------------------------------------------------------------------- /store/actionTypes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adam-golab/sonoff-server/HEAD/store/actionTypes.js -------------------------------------------------------------------------------- /store/actions.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adam-golab/sonoff-server/HEAD/store/actions.js -------------------------------------------------------------------------------- /store/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adam-golab/sonoff-server/HEAD/store/index.js -------------------------------------------------------------------------------- /store/initialState.js: -------------------------------------------------------------------------------- 1 | module.exports = {}; 2 | -------------------------------------------------------------------------------- /store/reducer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adam-golab/sonoff-server/HEAD/store/reducer.js -------------------------------------------------------------------------------- /store/sideEffects.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adam-golab/sonoff-server/HEAD/store/sideEffects.js -------------------------------------------------------------------------------- /store/sideEffectsMiddleware.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adam-golab/sonoff-server/HEAD/store/sideEffectsMiddleware.js -------------------------------------------------------------------------------- /wsApp.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adam-golab/sonoff-server/HEAD/wsApp.js --------------------------------------------------------------------------------