googlecreativelab / coder

A simple way to make web stuff on Raspberry Pi
http://goo.gl/coder
Apache License 2.0
2.42k stars 275 forks source link

Installing Coder manually #8

Open philippwiddra opened 10 years ago

philippwiddra commented 10 years ago

Could you add a description how to manually install Coder on a Pi or any other linux maschine? You do not want to reinstall / reconfigure everything i already did on my pi just to run coder. I tried following to install:

sudo apt-get install redis-server
mkdir -p ~/src && cd $_
git clone https://github.com/googlecreativelab/coder.git
cd coder/coder-base
npm install
npm start

I also tried node server.js and looked into the config.js file.

The result is always a server which seems running, ( i get 14 Sep 17:47:52 - redirect: 192.168.1.8:8080 443 / log messages) but when accessing the server via raspberrypis-local-ip:8080 i get Error: Corrupted content and when accessing via port 8081 the page never stops loading.

wjgeorge commented 10 years ago

See http://chrismcleod.me/2013/09/13/run-coder-for-raspberry-pi-on-your-linux-pc

i also had to install nodejs + nodejs-legacy packages for ubuntu

and the URL will be https://localhost:8081 (or the hostname of where ever you installed the packages)

vmauge commented 10 years ago

I try tro do the same on Mac and the procedure is : Install XCode and Command line tool Install NodeJS and npm from http://nodejs.org/download/ Install GIT from http://git-scm.com/download/mac git clone https://github.com/googlecreativelab/coder.git cd coder/coder-base npm install npm start

After connect to https://localhost:8081 and choose a password. On the console running node you need to for now enter your password. An other solution as explain in issue https://github.com/googlecreativelab/coder/issues/4 will be to modify auth apps.

You can finally enjoy coder.

lurch commented 10 years ago

There's also another guide for doing this here: http://pi.gadgetoid.com/article/running-google-coder-on-your-existing-raspberry-pi-or-desktop-pc

brannondorsey commented 10 years ago

@vmauge what command actually starts the node.js server that coder runs on from a Mac? Does the node.js that you write in the Coder node tab run on top of that process or in a separate node.js process? And where could it be monitored? I may open an issue for this question specifically.