-
Notifications
You must be signed in to change notification settings - Fork 174
Open
Description
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 });
ReallyBasicGames
Metadata
Metadata
Assignees
Labels
No labels