Deploy app.py and requirements.txt to Raspbian.
Login to Raspbian and set up the Python environment (You need python3-venv to use venv).
| /* @flow */ | |
| import '@babel/polyfill'; | |
| import { createStore, applyMiddleware } from 'redux'; | |
| import ReduxThunk from 'redux-thunk'; | |
| type AppState = { | |
| counter: CounterState, | |
| message: MessageState, | |
| child: ChildState | |
| } |
| function toRecord(origin) { | |
| function check(lock, prop) { | |
| if (!lock) { | |
| throw new Error('Changes outside $mutate'); | |
| } else if (prop === '$mutate') { | |
| throw new Error('$mutate can never be changed'); | |
| } | |
| } |
| { | |
| "presets": [ | |
| "env" | |
| ], | |
| "plugins": [ | |
| "transform-async-to-generator" | |
| ], | |
| "env": { | |
| "development": { | |
| "presets": [ |
| { | |
| "presets": [ | |
| "env", | |
| "react" | |
| ], | |
| "plugins": [ | |
| "transform-flow-strip-types" | |
| ] | |
| } |
| { | |
| "presets": [ | |
| "es2015", | |
| "react" | |
| ], | |
| "env": { | |
| "development": { | |
| "presets": [ | |
| "power-assert" | |
| ] |
| { | |
| "presets": [ | |
| "es2015", | |
| "react" | |
| ], | |
| "env": { | |
| "development": { | |
| "presets": [ | |
| "power-assert" | |
| ] |
| bundle.js | |
| ### https://raw.github.com/github/gitignore/c751b70cc6ec57de20f918dbf05448333ffa2191/Node.gitignore | |
| # Logs | |
| logs | |
| *.log | |
| npm-debug.log* | |
| # Runtime data |
| import React from 'react'; | |
| import { render } from 'react-dom'; | |
| import { createStore, bindActionCreators, applyMiddleware } from 'redux'; | |
| import { Provider, connect } from 'react-redux'; | |
| import thunk from 'redux-thunk'; | |
| const START = Symbol(); | |
| const UPDATE_PROGRESS = Symbol(); | |
| const COMPLETE = Symbol(); |