Glitch is a super cool platform that lets you edit, collaborate, and publish your Node.js apps. It does have GitHub support but lacks a lot of features.
This is a template to enable a lot of extra functionality, and is great way to learn CD/CI.
Glitch is perfect for bots, small projects, and fun apps. Here's why you should consider using this template:
- Free as in pizza 🍕 and source code 📖, by hosting on Glitch.
- Relatively easy to setup, with full and extendable control over how deployments work.
- Gets all the benefits of Glitch (collaboration, live code) with a convenient way to reset changes after saving them through GitHub.
- Only supports Node.js.
- Glitch has some resource restrictions in place, although they are hard to hit or can be circumvented.
- Glitch API is unfortunately not dependable, use at your own risk.
For basic usage, run npm i
, then npm start
to get a web server.
Start with a tutorial to setup with Glitch.
Or click for the video tutorial to setup:
If you want know what else you can do check out extras to customize your workflow.
Consider security implications.
npm run sync
will make Glitch redeploy the project to the current main branch of this GitHub repo.npm run safe-sync
does the same assync
, but the command being run isn't printed to console, which hides the secret variables. Ideal for Travis CI, or any public place sync is being ran.npm run update
with rungit push
, thensync
for you. Simplifies deploying changes from 2 commands to 1.
Made by Jonathan Burns, enjoy the 🐟🐟
Feel free to open a Pull request ⬆️.