Giter VIP home page Giter VIP logo

coder's Introduction

Coder

A simple way to make web stuff on Raspberry Pi

Coder is a free piece of software that turns a Raspberry Pi into a super simple platform that educators and parents can use to teach the basics of building for the web. New coders can craft small projects in HTML, CSS, and Javascript, right from the web browser.

http://goo.gl/coder

What You'll Find Here

coder-base

The Coder node.js server and application files

coder-apps

The Coder applications that come pre-installed in the Coder distribution

raspbian-addons

Modifications and additions to the stock raspian configuration and init structure

installer

Utility for transfering the coder image to an SD Card

findcoder-appengine

EXPERIMENTAL: A status server that can be run to help locate multiple Coder devices in a classroom scenario

coder's People

Contributors

arcanericky avatar cmatta avatar jmstriegel avatar ralexstokes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

coder's Issues

Problems when trying to run this on a MacBook.

Version of redis

$ redis-server -v
Redis server v=2.6.13 sha=00000000:0 malloc=libc bits=64

Version of node.

 $ node -v
v0.8.10

Starting coder.

$ cd coder-base
$ npm install
$ npm start

> [email protected] start /coder/coder-base
> node server.js

    13 Sep 10:06:29 - GET: /
13 Sep 10:06:29 - GET: undefined auth
13 Sep 10:06:29 - GET: addpassword auth
13 Sep 10:06:39 - GET: api/addpassword auth
Password:13 Sep 10:06:41 - GET: api/addpassword auth
Password:

I end up on this URL https://localhost:8081/app/auth/addpassword?firstuse, trying to save a new password doesn't seem to do anything.

Thanks.

coder_v04.zip not able to unzip

I've downloaded coder_v0.4.zip.download on my mac. I then select "show package contents", and then try to open coder_v04.zip using the archive utility. It's giving me an Error 2 - Directory doesn't exist every time..

What might I be doing wrong?

thanks

"Unable to expand "coder_v0.4.zip" into "coder_v0.4.zip.download". (Error 2 - No such file or directory.)

I have tried creating new directories, and even naming it what it was looking for, but no luck thus far...

Error module not found on (nodejs server.js)

After a manuall install on raspberry pi I got the error module not found
in /coder/coder-base/apps/auth/app.

I saw there was modification 16 days ago in this dir.
(Files where moved...)

pi@rhpi ~/coder/coder-base $ nodejs server.js

module.js:337
    throw new Error("Cannot find module '" + request + "'");
          ^
Error: Cannot find module '/home/pi/coder/coder-base/apps/auth/app'
    at Function._resolveFilename (module.js:337:11)
    at Function._load (module.js:279:25)
    at Module.require (module.js:359:17)
    at require (module.js:375:17)
    at /home/pi/coder/coder-base/server.js:187:23
    at Object.<anonymous> (/home/pi/coder/coder-base/server.js:278:1)
    at Module._compile (module.js:446:26)
    at Object..js (module.js:464:10)
    at Module.load (module.js:353:32)
    at Function._load (module.js:311:12)

thanks
Robert

ssh access

Since sshd is running it would be nice to know the login name and password?
The default passwords used in raspbian wheezy doesn't work.

AngularJS not run.

I added the angularjs.min.js file. But it seems that not run. I don't know why? Hope someone can help me. Thanks!
Here is my screenshot:

status1
status2

Export coder project w/ package.json

Please could it be made possible export a coder project to a zip with a relevant package.json and app.js, so it can be executed from export, or included in an expressjs application at a set URL, ideally both functions with the same package.

Thanks in advance, Coder is really helpful.

Can't find coder.local

Midori can't find coder.local.

Do we need to install Chrome? Will that work on a 256M RAM raspi?

Coder outside of Raspberry Pi

Is it possible to support Coder as an independent web development platform that can be installed in any PC/Mac? I rather like the way the single-file interface works and I see value in using it as a learning platform everywhere, Raspberry-Pi or not :)

Updating Coder

Just, a thought, how would you update coder, in-app?
I am only thinking about the core node.js app, would it be possible for a notification, on login, with a single-click update process?

Pi user password

Im trying to login to the pi user in the terminal, but cant find the password. any help would be appreciated

How to connect coder to a secure wifi network

Looking for a bit of explanation as to the ability to connect coder to a wifi network. I am looking to use raspberry pi with wifi dongle to run a projector remotely. Once the pi and wifi are set up and i am able to connect directly to the pi via wifi,

How do i connect the pi to a local wireless network that is secured? i saw in a screenshot that there is a settings panel that had a wifi config button, is this the same as the wifi config as one would see on the pi desktop? Also is there some way to put the wifi config into a coder app? Or rather include the wifi config as part of a coder app that i create?

Mobile Access

Has anyone been able to access coder.local on a mobile device? I'm having no such luck on my Samsung Galaxy Nexus through the mobile Chrome app.

Your card wasn't correctly detected. Let's try again

I'm trying to install Coder in SD card using SDFormatter like I do in my SD cards to install Raspberry Pi distros in raspberrypi.org

All the time I get "Your card wasn't correctly detected. Let's try again".

Environment:
MacOSX 10.8.5
SD Card Element 14 4GB formatted in FAT-32

screenshot

clean reboot?

we need to add a shutdown button to the main coder app. otherwise, it's only a matter of a few unpluggings and the SD card to hosed, right?

Running Lego Mindstorms from Google Coder

I am working on the BrickPi(http://www.dexterindustries.com/BrickPi/) which a shield for Raspberry Pi which controls the various sensors and motors on the Lego Mindstorms from the RPi itself. We have a library up and working on Python and C (https://github.com/karan259/BrickPi_Python). Now we want to use Google Coder so that users can directly run the Python code from the Google Coder, i.e, directly from the browser and don't want to port the whole library to JavaScript or any other language.

We have tried a Python-to-JavaScript compiler (Pyjaco) but that didn't help much , now going to try out RPC using ZeroRPC(http://zerorpc.dotcloud.com/). Does anyone have experience in this kind of environment can annyone suggest if there is a better way to do this.

GPIO pins inaccessible via fs.js and user coder permissions, PI-GPIO

I have been experimenting with pi-gpio version 0.0.2, and node version 10.9
There seems to be a permissions problem. The call to define a pin works:

gpio.open(16, function(err, value) {
if(err) throw err;
console.log(value); // The current state of the pin
});

It uses gpio-admin and the node fs.js to accomplish this. It results in permissions:

-rw------- 1 coder coder 4096 Oct 5 08:18 value

However, when we want to execute a gpio.read command, it eventually ends up at this call in fs.js, line 284

var fd = fs.openSync(path, flag, 438 /=0666/);

EDIT: this is the same in version of nodejs distributed with coder.

I tried setting the optional flag 'r', which it defaults to anyway. But editing the source of a node fs.js, I would rather not do.

I can get pi-gpio to succeed in reading the value by chmod'ing to 666.

So, what would the proper resolution to get IO going on this platform - a default umask for the coder user on that directory?

Any help greatly appreciated. I really want to get going with actually building a web UI instead of chasing down the inner-workings, however interesting it is.

Connect on Chrome OS

For some reason I am totally unable to connect to Coder on my Chromebook. I can connect totally fine on my Mac Mini and Windows desktop. I am given an error about DNS. Is this because of a way that the Chrome OS handles DNS as opposed to how it works on the other desktops or is this just a weird bug for me?

Plugin/extension library

I've seen many issues asking for additional support for this language and that one too. It should be really awesome to support other awesome languages like python or ruby, but...

I also appreciate the KISS principle ( Keep It Stupidly Simple ) that's handled here. Many new-to-the-programming-world are often too scared of the bunch of languages (or featurettes) supported in the Coder project, like learning one programming language isn't difficult enough for them (it isn't difficult, we all know, but they don't).

Therefore, I suggest to create something like a plugin/extension-library (like Chrome web store ), so that when the user gets more confident and experienced with hacking (or is already experienced), they can download plugins for supporting other languages they want to learn it too (or some other pretty cool extensions - Vim support, Git support, to get some ideas..) into the RPi Coder instead of pumping the Coder project full of support/extensions they problably never use it anyway...

Accessing a camera connected to Raspberry Pi

How would one connect to a camera attached to the pi? would this be done via javascript codes that add webcam support to your projects? Also could the Processing.js libraries be used with coder?

Installing Coder manually

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.

Network name different

Small issue but in the instructions on setting up Coder (WiFi section) it says a new network will be created called "Coder Setup".

Join the new WiFi network "Coder Setup,"

but the network is called "CoderConfig" for me.

Wifi install not working

Is there any specific requirements for the Wifi Dongle except being compatible with Raspberry Pi?

Redis support?

I see you have the redis package included in the package.json, but don't seem to have it installed or initiated in the pi code nor are you using it in the node stuff anywhere. It's easy to fix once the pi is up and running, but is there plans to support it moving forward, or will that package be dropped?

Bad zip file download?

I'm sorry, but I've been unable to extract the coder_v.4.zip without errors:

wget http://storage.googleapis.com/coder-images/coder_v0.4.zip
unzip -a coder_v0.4.zip
[snip]
inflating: coder_v0.4/raspi.img [binary]
error: invalid compressed data to inflate
[snip]

7zip also complains about the raspi.img portion, when extracting.

Is this an error I can safely ignore?

Thanks!

Bundle Chrome for local development

It would be great if there was a version of Chrome or perhaps Chrome OS bundled with this so development could be done directly on the Pi, without the need for an additional computer.

I understand that porting Chrome is no small feat, but right now support for HTML5 on the Pi is pretty poor.

It would be nice to install alternatives to jQuery (e.g. YUI3) in coder

I'd like to use Coder to share/prototype some YUI3 projects on a Raspberry Pi. Since coder is using SSL YUI should be installed locally to the Pi. Exploring the file system via SSH I can put a copy in static common but this seems like heavy handed. It also appears to limit the advantages of import/export since my Pi becomes unique to the others. I don't see docs on the file system organization or plans. What is the right place to install files like this and still allow import/export of projects
with other Coders? Or should I just fork the project, add the current YUI3 in static/common and do a pull request?

Support for multiple HTML/JS/CSS files

Some web dev scenarios might need support for multiple HTML/JS/CSS files. Is that something that would make sense to incorporate inside Coder, or is it something that Coder isn't designed to support?

Restarting the Coder service

When I execute my node.js script which I'm trying to debug, coder crashes. What is the quickest way to restart coder?

Format for uploading an app

When creating a new app, there's an "upload" button. What can be uploaded and what's the expected format/structure? Tried uploading a entire .zip file clone of an entire app but that doesn't seem to work.

SSH credentials?

I attempted to login with username "pi" and password "raspberry" (the default credentials), but I am getting an incorrect password error.

What are the default login credentials for coder? I want to SSH in and tinker a little.

How to make coder use full SD space?

I have it on a 16GB SD card. Running df -h shows:

Filesystem      Size  Used Avail Use% Mounted on
rootfs          2.2G  2.1G     0 100% /
/dev/root       2.2G  2.1G     0 100% /
devtmpfs        212M     0  212M   0% /dev
tmpfs            44M  252K   44M   1% /run
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs            88M     0   88M   0% /run/shm
/dev/mmcblk0p1   56M   19M   38M  33% /boot

UPDATE: I need to reboot to make it change. Never mind :)

Writing Node.js in Coder

I am a bit puzzled as to how writing Node.js inside of Coder works, where it is executed, and how it is debugged. When you use the fourth "Node" tab on any Coder app when will that server side code be run? If I am building an app in coder that relies on various Node.js processes (i.e. using the Twitter module to access a twitter stream and potentially push the content to the view) should that logic be written in the Node tab in the Coder GUI or inside the apps app.js file?

I am assuming that the request to each app's index page is handled via the exports.index_handler = function( req, res ) inside its respective app.js file. Does this mean that is where my custom Node code should go if I want it to be run whenever a user visits the page? What if I want it to be persistent?

Also, obviously Coder comes with Node because, well, Coder uses it. But I have found that I cannot access Node anywhere on my Pi except for inside coder-base. If I navigate to my home/ directory and try node somefile.js I get a command not found error. Is there a way to use the Node that comes with Coder on the Pi so that I don't have to install another copy?

Ruby Support

Is it possible to add Ruby on Rails support to Coder?

Coder on Acme Systems Linux Embedded hardware

My company makes a Linux Embedded system on module called Ariag25 (www.acmesystems.it/aria). We are thinking to design a carrier board to add a microSD holder (http://www.acmesystems.it/ariag25_wirings) and an OEM WiFi module
(http://www.acmesystems.it/WIFI-1) to create an embedded web server usable also for commercial or industrial products. The costs could be the same of Raspberry-Pi + WiFi usb key but on a small footprint and without video interface.

I'm checking if the coder is exportable on Aria (we use EmDebian Grip 7.1 + Linux Kernel 3.11) so it is just a plan but any feedback wil be appreciated.

Thanks

Ad-hoc fallback unreliable

I've been using Coder mixed with my software, BlockyTalky (https://github.com/tufts-LPC/blockytalky), which does not modify the Coder software at all. I have noticed that at times the ad-hoc network either a) fails to ever appear or b) appears after a long period of time. Is there a way to improve this? Or is a wired connection better?

The abilty to load coder to port 8080, any device?

How could I possibly load coder-base at port 8080, off my laptop? I have attempted tweaking coder-base, and executing it(via node server.js), but I cannot get this to work properly. Is this possible?

Using RPi GPIO

Can the GPIO pins of the Raspberry board be used in anyway through our web design..
to make a sort of home automation system

thanks..

Google Script integration

This platform looks great and I'm looking forward to trying it out. I've done my first bit of Javascript over on Google Sheets, which uses Google Script. Would there be any possibility of integration with Coder (it is Google after all!)? It'd be great to refer to one of my spreadsheets in Drive.
e.g.

var ss = SpreadsheetApp.getActiveSpreadsheet()

Code search functionality

It would be nice to have an code search functionality in Coder to easily find code snippets in large files!

Option to make a Coder public

How can I use my domain name with my Coder ?
It will also great to have an option to make an app available for people without the password connection.

No php support

your platform is really awesome. I'm just now taking it for a test spin. Is it possible to somehow add php support though? For me the lack of php is really an issue.

If you point me in the direction of a commandline I'll gladly commit or fork a revised version.

Thanks in advance!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.