Skip to content

Latest commit

 

History

History
40 lines (23 loc) · 1.41 KB

README.md

File metadata and controls

40 lines (23 loc) · 1.41 KB

GumHub

GumHub is an integration between Gumroad and Github that will give users that purchases your product on Gumroad access to a private repository on Github that you own.

You can test the integration here: https://robinch.gumroad.com/l/gnudi

This project was inspired by this article: https://makerkit.dev/blog/tutorials/sell-code-gumroad-github

Environment Variables

The following environment variable need to be set

GUMROAD_TO_GITHUB_MAPPINGS

The value is a list of mappings.

<GUMROAD_PRODUCT_ID_1>:<GITHUB_REPO_OWNER_1>:<GITHUB_REPO_NAME_1>:<GITHUB_TOKEN_1>,<GUMROAD_PRODUCT_ID_2>:<GITHUB_REPO_OWNER_2>:<GITHUB_REPO_NAME_2>:<GITHUB_TOKEN_2>

Example

GUMROAD_TO_GITHUB_MAPPINGS=SDKLjgjlsjfld==:robinch:gumroad-private:git_token_123,...another mapping

Running the application locally

To start your Phoenix server:

  • Run mix setup to install and setup dependencies
  • Start Phoenix endpoint with mix phx.server or inside IEx with iex -S mix phx.server

Now you can visit localhost:4000 from your browser.

Ready to run in production? Please check our deployment guides.

Learn more