googlecreativelab / coder

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

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

Closed rsdoiel closed 9 years ago

rsdoiel commented 10 years ago

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?

jmstriegel commented 10 years ago

You can add a js file to your app's media folder (folder icon in editor). Then tweak the includes in the HTML head tag. That makes it specific to the project you're working on.

Secret trick: If you end up doing this a lot, go to /app/editor/edit/boilerplate and make your new apps default to exactly how you want them. On Nov 8, 2013 9:29 PM, "R. S. Doiel" notifications@github.com wrote:

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?

— Reply to this email directly or view it on GitHubhttps://github.com/googlecreativelab/coder/issues/57 .

rsdoiel commented 10 years ago

Thanks for the fast response. This sounds like the ticket I'll give it a try.

All the best,

Robert

On Fri, Nov 8, 2013 at 6:42 PM, Jason Striegel notifications@github.comwrote:

You can add a js file to your app's media folder (folder icon in editor). Then tweak the includes in the HTML head tag. That makes it specific to the project you're working on.

Secret trick: If you end up doing this a lot, go to /app/editor/edit/boilerplate and make your new apps default to exactly how you want them. On Nov 8, 2013 9:29 PM, "R. S. Doiel" notifications@github.com wrote:

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?

— Reply to this email directly or view it on GitHub< https://github.com/googlecreativelab/coder/issues/57> .

— Reply to this email directly or view it on GitHubhttps://github.com/googlecreativelab/coder/issues/57#issuecomment-28113032 .

rsdoiel commented 10 years ago

Ok, I'm playing around with this on my Pi. I wound up manually adding the files via SSH to the media folder. Export doesn't pickup the files. I believe this is because they are nested in sub directories. I think what I should try is a couple of things. First if I modify your upload function to handle zip archives that could remove the need of someone using SSH (and guessing their coder password also resets the pi user password). The second part would be to have the export function include any directories insider of media since I'm pretty sure that is why the don't make the export.

I've forked your repo. I'll toy around with stuff on my spare Pi (it is so cool they are affordable) then submit a pull request if I come up with something useful.

All the best,

Robert

sebasribas commented 10 years ago

I'm trying out getting FramerJS to work with Coder but I can't either. I guess it'd be easier if we could drag&drop folders to the Media explorer to keep the structure? But I believe that Framer's dependencies are inside the js files it provides, so I would have to go manually as jmstriegel commented.

Thanks.

rsdoiel commented 10 years ago

Pi/Coder is so intriguing as a teaching platform but also for quick experiments where jsbin/jsfiddle aren't as appropriate (e.g. I'm on the commuter train with horrible 3g connections). I think it would be interesting to integrate TogetherJS from Mozilla or even include a simple Browser ID module so teach integrating that could be made easy. The Coder team did such a great job that it makes me want to push it even further.

All the best to everyone!

On Thu, Nov 14, 2013 at 8:32 AM, sebasribas notifications@github.comwrote:

I'm trying out getting FramerJS to work with Coder but I can't either. I guess it'd be easier if we could drag&drop folders to the Media explorer to keep the structure? But I believe that Framer's dependencies are inside the js files it provides, so I would have to go manually as jmstriegel commented.

Thanks.

— Reply to this email directly or view it on GitHubhttps://github.com/googlecreativelab/coder/issues/57#issuecomment-28498636 .