npm install -g flow-bin
npm install
# Upload env & SSL files from local. See key.txt for command
make dev
# Install correct eslint: https://github.com/airbnb/javascript/tree/master/packages/eslint-config-airbnb#eslint-config-airbnb-1
# Fresh start
make build && make pm2
# Update & Restart
make updateAndRestart
# Update db if there's schema change. See key.txt for details
##############################################################################
# Options
# Start with babel-node
sudo NODE_ENV=production ./node_modules/babel-cli/bin/babel-node.js server
# One line start
sudo pm2 start index.js --no-daemon
# pm2 list
sudo pm2 list
# pm2 start with .json
sudo pm2 start pm2_config.json
# DBD Capital
127.0.0.1 dbd-capital.com
127.0.0.1 www.dbd-capital.com
# Check available upgrades
ncu
# Take a look at the update and handle minor version updates first
npm update
# Check Github release updates and handle each major update carefully. Run the tests!
ncu -u webpack
npm update
# Update package.json to include the previous minor version updates too
ncu -a
brew update && brew install mongodb
ps aux | grep mongo
sudo kill #id
$ npm install --save-dev eslint eslint-plugin-react babel-eslint eslint-config-airbnb
Install linter-eslint and react from "Install"
Completely close and restart Atom
For babel-root-import exception:
flow-type
Store jwt in Cookie according to
Todo
https://medium.com/@dan_abramov/react-components-elements-and-instances-90800811f8ca#.cx6foekli https://medium.com/@housecor/react-stateless-functional-components-nine-wins-you-might-have-overlooked-997b0d933dbc#.mzql1zm99