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

Make it easy to remix on glitch #4

Open
rajsite opened this issue May 4, 2019 · 0 comments
Open

Make it easy to remix on glitch #4

rajsite opened this issue May 4, 2019 · 0 comments

Comments

@rajsite
Copy link

rajsite commented May 4, 2019

The tutorial is really great! One thing that I liked about it is that it is super close to being completely usable on glitch.com without changes.

You could make a glitch import from GitHub button: https://github-import.glitch.me/
That would let someone instantly clone the git the repo and have the example io game hosted for free. People can then immediately tweak and play around with it in the glitch online editor without even downloading or installing anything.

The only changes I needed to make to have it start in glitch was change package.json to build when the server starts:

 "start": "npm run build && cross-env NODE_ENV=production node src/server/server.js"

And change the websocket server to use wss in client/networking.js:

const socket = io(`wss://${window.location.host}`, { reconnection: false });
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

1 participant