Code Monkey home page Code Monkey logo

glitch-github-sync's Introduction

Glitch Github Sync

Introduction

The main ideia of this project is develop your Glitch project using your prefered development tools (code editor, plugins, etc) with a code versioning (git).

How it works

The sync works in both ways, but the default is Github -> Glitch.

Sync Github -> Glitch

Just make a git push to Github repository. The Glitch repository will be updated automaticaly.

Sync Glitch -> Github

Export your Glitch repository to Github. This will add a new glitch branch on your Github repository. Then, merge glitch branch to master.

Instructions

  1. Copy this repo

    Fork this repository and clone the forked repository to local machine.

  2. New Glitch project

    Create new Glitch project based on forked github repo url.

    New Glitch Project

  3. Setup .env file

    On Glitch project, create a .env file with the following keys: GITHUB_URL and GITHUB_SECRET. To generate your GITHUB_SECRET you can use a tool like this.

    Setup .env file

  4. Setup Webhook

    On Github forked repo settings, create a new webhook.

    Create Webhook

    And congfigure the Payload URL to point to https://<YOUR_GLITCH_PROJECT>.glitch.me/git, change the Content Type to application/json and use the same value of GITHUB_SECRET of .env file in Secret field.

    Setup Webhook

  5. All done

    Now, on your local repo, make a change in code and push to github. The glitch project will be updated automatically.

Working sample

Sample

Click on the image or here to see the video in better quality and normal speed.

glitch-github-sync's People

Contributors

angelostavrow avatar dependabot[bot] avatar nmcardoso avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

glitch-github-sync's Issues

How do we sync it for our own repos? (404 error)

I get the following error if I use the webhook and .env for my own repository:

Cannot POST /git

Do I need to copy your code into my repository somehow? It works if I clone this repository, but for an existing Glitch GitHub repository I am getting the above 404 error.

403 Error

My webhook is giving me a 403 error for some reason. How can I fix this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.