NODE ++
Posted by kll on February 01 2017 09:18:02
last year i play little with node express angular mongodb [MEAN]
now i want to restart with some other framework.


but first on RPI with new SD-card and RASPBIAN installed
upgrade to the newest NODE version
i do it from /home/pi/Downloads/, later all, the zip and the unzipped files can be deleted.
note: this way of install NODE messes up /usr/local/...
wget https://nodejs.org/dist/latest/node-v7.4.0-linux-armv7l.tar.xz
tar -xvf node-v7.4.0-linux-armv7l.tar.xz
cd node-v7.4.0-linux-armv7l
sudo cp -R * /usr/local/
sudo reboot
node -v
npm -v



other way for install node
curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
sudo apt install nodejs

works but removes node-red application.. so i needed a new setup.


i read here that for a start we should study
REACT and REDUX with examples and more examples
this i want to play now:






now for layout i look for a responsive design and find Bootstrap
even it is made using eclipse, copy the project and just type npm start


GOOGLE CODER
i want find out whats that,
Coder for Raspberry Pi. and Google Coder: a simple way to make web stuff on Raspberry Pi
talk about getting / loading a RASPBIAN image from google?
but following Running Google Coder On Your Existing Raspberry Pi Or Desktop PC example tutorial Make Your Own Mondrian
even this stuff is all 3 years old i want try:
cd projects/node/
git clone https://github.com/googlecreativelab/coder
cd coder/coder-base/
npm install


in coder/coder-base
echo "" > sudo_scripts/setpipass # NOT WORK

nano config.js
--
exports.listenIP = '127.0.0.1';
exports.listenPort = '8081';
exports.httpListenPort = '8080';
exports.cacheApps = true;
exports.httpVisiblePort = '8080';
exports.httpsVisiblePort = '8081';
--
node server.js
get ERROR
pi@RPI3:~/projects/node/coder/coder-base $ node server.js
/home/pi/projects/node/coder/coder-base/node_modules/socket.io/lib/store.js:35
Store.prototype.__proto__ = EventEmitter.prototype;
^

TypeError: Cannot read property 'prototype' of undefined

node -v
v7.4.0
npm -v
4.0.5