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

Instructions for running on localhost, or a server on my LAN? #34

Closed
JamesDBartlett3 opened this issue Oct 1, 2022 · 2 comments
Closed

Comments

@JamesDBartlett3
Copy link

I'd like to run this code on either my localhost, or a server on my LAN, so it will work even when the internet is down or being flaky. Sorry for the stupid newbie question, but I read the entire readme file, and I couldn't find any instructions on how to run this program on my own machine. What am I missing?

@Rezmason
Copy link
Owner

Rezmason commented Oct 2, 2022

That's fair @JamesDBartlett3, I've now added a clarification to the readme file:

This project runs right in the web browser; you can serve it from any HTTP/HTTPS server with no additional setup.

For instance, when I test it locally on my Mac, I just cd to my git repo and python3 -m http.server, like a chump. GitHub Pages is honestly more stringent than the environment I locally host it in, with its CORS and its relative path shenanigans. 😁

@Rezmason Rezmason closed this as completed Oct 2, 2022
@JamesDBartlett3
Copy link
Author

Thanks for clarifying that. 😊👍

If I may make a suggestion, I think it would be very helpful if you included that "for instance" bit with the python command in your readme as well.

All of the open source web apps I've worked with so far came with their own dedicated launch commands, like npm start, yarn start, etc., so the idea that I could just throw this code into a directory, fire up any ol' web server daemon there, and point my browser directly at localhost didn't occur to me. I think I was expecting something more complicated. 😅

If you hadn't added that bit at the end, I think I'd still be scratching my head, though I'm probably a lot less savvy than most folks who find this repo and decide to play with it, so I dunno. 🤷‍♂️

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

2 participants