Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble running server #16

Open
ruttyj opened this issue Nov 19, 2020 · 3 comments
Open

Trouble running server #16

ruttyj opened this issue Nov 19, 2020 · 3 comments

Comments

@ruttyj
Copy link

ruttyj commented Nov 19, 2020

Hey,

I'm not able to run this step:

  1. Within another terminal, navigate to the root directory and run "python -m SimpleHTTPServer"

Can you please elaborate?

@m0dE
Copy link

m0dE commented Nov 19, 2020

Not to diss the creator of this repo, this repo is like 10 years old. there are many better alternatives out there like:
https://github.com/moddio/taro
https://github.com/timetocode/nengi
https://github.com/geckosio/geckos.io

@onedayitwillmake
Copy link
Owner

Completely agree with @m0dE -

This repo is pretty out of date, if I was revisiting this concept again I would architect it quite different (although keeping the core ideas).

I would say, watch this conf talk I gave when I made this repo, and borrow ideas from it - but looking at the alternatives they look really great and up to date compared to this repo

@onedayitwillmake
Copy link
Owner

However to answer your question:

Within another terminal, navigate to the root directory and run "python -m SimpleHTTPServer"

Browsers add restrictions when browsing from the local file system (such as connecting to a websocket). Hence we use the above command, to start an HTTP server, which will serve the index.html so that you are not browsing HTML files from file://

If you're on windows, i'm nto sure what the steps would be - but anything that can serve the files will do

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants