Getting Sandbox app to work locally

386 views
Skip to first unread message

mike.r....@gmail.com

unread,
Mar 18, 2014, 1:04:14 PM3/18/14
to polym...@googlegroups.com
How do I go about getting the sandbox app to work locally?

Is there a simple set of bower commands that I can use?

I tried just downloading the repo from github but it requires a bunch of additional stuff

ANy help would be appreciated

Rob Dodson

unread,
Mar 18, 2014, 1:29:44 PM3/18/14
to polym...@googlegroups.com, mike.r....@gmail.com
Hey Mike,

You should only need to run bower install and then fire up a local server. But it looks like lib/components.html is trying to import a bunch of elements that no longer exist. I'd recommend you try to use the designer instead: https://github.com/PolymerLabs/designer It's basically the same tool but more up to date.

- Rob

Eric Bidelman

unread,
Mar 18, 2014, 1:37:16 PM3/18/14
to mike.r....@gmail.com, polymer-dev

Sandbox is not something we're actively maintaing atm. I'm seeing errors when firing it up in Chrome. There's a newer Designer tool that's similar to Sandbox that you might have better luck with. This should get you setup:

     git clone https://github.com/PolymerLabs/designer.git

     bower install

Then run a web server in the root of the designer folder.



Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/9d472ebf-100e-438f-832a-caf3b8fdecd5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

mike.r....@gmail.com

unread,
Mar 18, 2014, 2:11:08 PM3/18/14
to polym...@googlegroups.com, mike.r....@gmail.com
Thanks Eric ... this worked for the most part. I can load the designer but it gives me an error on loading

14:7:00 [404]: /components/paper-elements/metadata.html

Is this important?

Mike Parsons

unread,
Mar 18, 2014, 2:22:12 PM3/18/14
to polym...@googlegroups.com
Also are their any instructions on how to add another component to the palette interface?

Eric Bidelman

unread,
Mar 18, 2014, 7:21:51 PM3/18/14
to Mike Parsons, polymer-dev
Unfortunately, we don't have instructions but you can follow how the app loads a list of elements by following the same model. 

1.  The designer index.html dynamically loads an import with the set of polymer-ui-element metadata imports: https://github.com/PolymerLabs/polymer-ui-elements/blob/master/metadata.html

2. Each metadata element import defines a list of metadata for the designer tool to use: https://github.com/PolymerLabs/polymer-ui-scaffold/blob/master/metadata.html

On Tue, Mar 18, 2014 at 11:22 AM, Mike Parsons <mike.r....@gmail.com> wrote:
Also are their any instructions on how to add another component to the palette interface?


On Tue, Mar 18, 2014 at 2:11 PM, <mike.r....@gmail.com> wrote:
Thanks Eric ... this worked for the most part. I can load the designer but it gives me an error on loading

14:7:00 [404]: /components/paper-elements/metadata.html

Is this important?

Not sure what this is but you can comment it out.

FWIW, the elements that designer pulls in (polymer-element, polymer-ui-elements) are now in PolymerLabs. The set of elements that we'll improve, document, and evolve are the core-* elements on github.com/polymer/.

Sorry for all the flux right now. We need to spend some love on the tool :\
 




On Tuesday, March 18, 2014 1:37:16 PM UTC-4, Eric Bidelman wrote:

Sandbox is not something we're actively maintaing atm. I'm seeing errors when firing it up in Chrome. There's a newer Designer tool that's similar to Sandbox that you might have better luck with. This should get you setup:

     git clone https://github.com/PolymerLabs/designer.git

     bower install

Then run a web server in the root of the designer folder.



On Tue, Mar 18, 2014 at 10:04 AM, <mike.r....@gmail.com> wrote:
How do I go about getting the sandbox app to work locally?

Is there a simple set of bower commands that I can use?

I tried just downloading the repo from github but it requires a bunch of additional stuff

ANy help would be appreciated

Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.


Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.

ajun...@gmail.com

unread,
May 19, 2014, 12:33:00 AM5/19/14
to polym...@googlegroups.com, mike.r....@gmail.com

Mike,

I am having the same issue - the paper elements.  Did you every resolve the issue?  I couldn't follow Eric's advise on mimicking the model.

Rob Dodson

unread,
May 19, 2014, 10:46:02 AM5/19/14
to ajun...@gmail.com, polymer-dev, Mike Parsons
The paper and polytype elements are things the team was playing around with but they were never released. You don't need them to make designer work though, so you can ignore the 404s.

What Eric was saying is that if you make a metadata.html file for your component, then add that location to the index.html file in designer, you can make your own components show up in the palette on the left hand side. Right now there's a bug in designer which prevents elements from being dragged onto the canvas so it's effectively broken, but we'll get it fixed this week.




Reply all
Reply to author
Forward
0 new messages