Skip to content

Make it easy to remix on glitch #4

@rajsite

Description

@rajsite

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 });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions