A simple tool to automate and monetize granting access to your private repositories after a purchase is made on Gumroad.
UnlockRepo is built using:
Deploying UnlockRepo is straightforward:
- Clone this repository.
- Deploy to Vercel using
npx vercel deploy --prod
. - Set up a new Postgres database.
- Register a Gumroad OAuth application.
- In Gumroad, add a new custom text field titled "Github Username" (make sure it matches this text exactly).
- Register a GitHub OAuth application.
- Refer to the .env.example file and add the environment keys in Vercel.
To run UnlockRepo locally, make sure you have Node.js > 18.20.4 and Postgres installed.
- Clone this repository.
- Run
npm install
to install dependencies. - Copy .env.example, rename it to
.env.local
, and update the values as needed. - Run
npm run dev
.
Feel free to reach out at erfan@nextjsweekly.com or on Twitter with any questions or feedback. Hope you find this useful! 😊