Noob: Can't run the example of the getting started file.

95 views
Skip to first unread message

Pablo Oyarzo

unread,
Oct 20, 2014, 12:32:11 PM10/20/14
to polym...@googlegroups.com
Hi, I'm a noob when it comes to web development. I told to Rob Dodson over twitter that I was stuck, and I didn't have any experience in web programing, and he suggest that I should took a look on the treehouse courses. So I did, so now I know some HTML and CSS, then I went to the getting started guide at Polymer-project.org, and I understood everything... I did and I think I did well the first app... But then now I'm stuck on how to run the HTML. As I used to, I tried to just double click the .html document to open it in Chrome, and it was just a blank page that appeared. I have the latest Chrome version and everything. I re-read the guide and I notice that at the very beginning of the Getting Started Guide it was something about run it on a local server. I don't know how to do that, and searched any Polymer tutorial, but when that part, the local host part, they just did it somehow, assuming anyone knows how to do that.. Can anyone explain me how to I see my Polymer web apps?

Can anyone explain me how to I see my Polymer web apps?

Thanks in advance.

Eric Bidelman

unread,
Oct 20, 2014, 1:18:24 PM10/20/14
to Pablo Oyarzo, polymer-dev
If you have Python installed, it's very easy. Run:

cd yourpolymerproject/
python -m SimpleHTTPServer 8000

on the command line will start a webserver on port 8000 in the yourpolymerproject directory. Then you can access your app at localhost:8000.

If you're on another systems, something like http://apachegui.ca/ may be helpful.

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/8f3ca428-eae0-49fd-ba99-ee4b6c446cc4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Pablo Oyarzo

unread,
Oct 20, 2014, 1:59:28 PM10/20/14
to polym...@googlegroups.com, oyarzo...@hotmail.com
I opened the command line and type what you just told me, this is what it happened.
Screenshot_7.png

Matthew McNulty

unread,
Oct 20, 2014, 2:17:26 PM10/20/14
to Pablo Oyarzo, polym...@googlegroups.com
'python' not 'pytho'

Pablo Oyarzo

unread,
Oct 20, 2014, 2:22:18 PM10/20/14
to polym...@googlegroups.com, oyarzo...@hotmail.com
Done, but still... 
Screenshot_8.png

Matthew Butler

unread,
Oct 20, 2014, 2:22:55 PM10/20/14
to polym...@googlegroups.com, oyarzo...@hotmail.com
Looks like you're already inside of python interpreter. From the commandline with python instead run the command from the same directory that your polymer files are in. 

Pablo Oyarzo

unread,
Oct 20, 2014, 2:29:49 PM10/20/14
to polym...@googlegroups.com, oyarzo...@hotmail.com
How do i do that? My polymer file is at "C:\Users\Pablo Oyarzo\Documents\Sublime Text\Polymer"...

Eric Bidelman

unread,
Oct 20, 2014, 2:38:24 PM10/20/14
to Pablo Oyarzo, polymer-dev
Start a fresh terminal (or Ctrl+D to quit out of the python interpreter), then:

cd C:\Users\Pablo Oyarzo\Documents\Sublime Text\Polymer
python -m SimpleHTTPServer 8000

Open http://localhost:8000 in your browser.

Pablo Oyarzo

unread,
Oct 20, 2014, 2:44:40 PM10/20/14
to polym...@googlegroups.com, oyarzo...@hotmail.com
I really don't know why doesn't work... 
Screenshot_9.png
Screenshot_10.png

Matthew Butler

unread,
Oct 20, 2014, 2:52:22 PM10/20/14
to polym...@googlegroups.com, oyarzo...@hotmail.com
You're still inside of the python prompt, not a command prompt.

Click start, and in the search box type in 'cmd'. Click on the program that is listed and then try using the commands in the black box that appears (it will look similar to the python one you were using but has a few differences you'll be able to spot)

Pablo Oyarzo

unread,
Oct 20, 2014, 2:57:17 PM10/20/14
to polym...@googlegroups.com, oyarzo...@hotmail.com
It says it doesn't recognize "python" as a command 
Screenshot_11.png

Timothy W. Cook

unread,
Oct 20, 2014, 6:08:04 PM10/20/14
to Pablo Oyarzo, polym...@googlegroups.com
Pablo,

You need to learn how to use the commandline in Windows (or use another OS) 




For more options, visit https://groups.google.com/d/optout.



--

============================================
Timothy Cook
LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook

Pablo Oyarzo

unread,
Oct 21, 2014, 9:33:10 AM10/21/14
to polym...@googlegroups.com, oyarzo...@hotmail.com
Couldn't make it... Change the entire OS? Dang....

Rob Dodson

unread,
Oct 21, 2014, 10:56:26 AM10/21/14
to Pablo Oyarzo, polymer-dev
Hey Pablo, you don't have to use Python to start a local server. If you already have node installed you could try installing http-server, or you could install something like XAMPP. You'll need to be able to run a local server to do any kind of web development so it's a worthwhile investment to learn to do it now. Maybe google around for a tutorial that works for you, just look for "run a local server on windows".

Pablo Oyarzo

unread,
Oct 21, 2014, 11:04:15 AM10/21/14
to polym...@googlegroups.com, oyarzo...@hotmail.com
Oh hey! Hi! Hahahah. Thanks! I'll follow your advice Rob. I'll let everyone knows how I end up.

Pablo Oyarzo

unread,
Oct 21, 2014, 2:25:34 PM10/21/14
to polym...@googlegroups.com, oyarzo...@hotmail.com
YES! Finally did it! Thanks I made it with Noje.js and Http-server! Thank you very much!

Rob Dodson

unread,
Oct 21, 2014, 2:26:30 PM10/21/14
to Pablo Oyarzo, polymer-dev
No worries. Thanks for hanging in there :)

On Tue, Oct 21, 2014 at 11:25 AM, Pablo Oyarzo <oyarzo...@hotmail.com> wrote:
YES! Finally did it! Thanks I made it with Noje.js and Http-server! Thank you very much!

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.

Pablo Oyarzo

unread,
Oct 21, 2014, 2:27:44 PM10/21/14
to polym...@googlegroups.com
 I made it with Noje.js and Http-server on Windows! Check the Fav's coments for more guidance! 

Timothy W. Cook

unread,
Oct 22, 2014, 4:20:14 AM10/22/14
to Pablo Oyarzo, polym...@googlegroups.com
On Tue, Oct 21, 2014 at 11:33 AM, Pablo Oyarzo <oyarzo...@hotmail.com> wrote:
Couldn't make it... Change the entire OS? Dang....

​It is an either/or option.  You might find developing on Linux easier.  There are more beginner resources available.​  You can dual boot any Linux distro. 





Scott Miles

unread,
Oct 22, 2014, 12:42:18 PM10/22/14
to Timothy W. Cook, Pablo Oyarzo, polymer-dev
Fwiw, I've been doing web development work for a long time on Windows, it's perfectly suitable.

My advice to anybody getting into web development is to download and install Apache (I suggest builds from here http://www.apachelounge.com/download/). It's easy to install these days (even on Windows). Yes, it's a full-featured server, but I've never had it get in the way of something else. 

Since I work on web projects everyday, having a standing localhost server is a no-brainer.


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.

Pablo Oyarzo

unread,
Oct 22, 2014, 1:10:49 PM10/22/14
to polym...@googlegroups.com, t...@mlhim.org, oyarzo...@hotmail.com
Thanks! I'll make sure to check them out! 

Timothy W. Cook

unread,
Oct 23, 2014, 4:15:31 AM10/23/14
to Scott Miles, Pablo Oyarzo, polymer-dev
On Wed, Oct 22, 2014 at 2:42 PM, Scott Miles <sjm...@google.com> wrote:
Fwiw, I've been doing web development work for a long time on Windows, it's perfectly suitable.


​Sure, many people do.  But I'll bet you know how to use the commandline in Windows as well.  The OP could use a link to a good tutorial on that subject. 



 



--

Scott Miles

unread,
Oct 23, 2014, 11:10:14 AM10/23/14
to Timothy W. Cook, Pablo Oyarzo, polymer-dev
The tendency for osx/linux devs to suggest Python or Node as server components leads the Windows user to the command-line more abruptly than is likely necessary.

An Apache installer package (my suggestion, there are numerous other turn-key setups), notepad, and a web browser are all that's necessary for the n00b to start on web development.
Reply all
Reply to author
Forward
0 new messages