How to paywall 💰 a private github repo

  Рет қаралды 5,668

Web Dev Cody

Web Dev Cody

29 күн бұрын

My Products
📖 ProjectPlannerAI: projectplannerai.com
🤖 IconGeneratorAI: icongeneratorai.com
📝 ThumbnailCritique: thumbnailcritique.com
Useful Links
💬 Discord: / discord
🔔 Newsletter: newsletter.webdevcody.com/
📁 GitHub: github.com/webdevcody
📺 Twitch: / webdevcody
🤖 Website: webdevcody.com
🐦 Twitter: / webdevcody

Пікірлер: 48
@complexlity
@complexlity 27 күн бұрын
Today I learn 👌. I see you’re trying to break the Guiness world record for the most side projects
@alenv808
@alenv808 27 күн бұрын
Its incredible how much I have learned from watching your content for the past year
@WebDevCody
@WebDevCody 27 күн бұрын
glad to hear that!
@TheSocialDeveloper
@TheSocialDeveloper 27 күн бұрын
Nice, this flow for github is being used a lot lately
@dannydiscovers
@dannydiscovers 27 күн бұрын
You are so helpful it's insane
@IIllIlIllIlIllIlIlI
@IIllIlIllIlIllIlIlI 27 күн бұрын
If you have done any RBAC could you show how it is done in next.js sometime? I am having issues with implementation for it in Auth0 but even if you dont use Auth0 ever, would be very cool
@SeibertSwirl
@SeibertSwirl 27 күн бұрын
Good job babe!!
@whatgoglikeno6120
@whatgoglikeno6120 25 күн бұрын
I also have a starter kit. What I did was add a custom username field to the stripe checkout directly. Its skipping one step, people without github account cant even buy it and then I do the same responding to the webhook as you do.
@WebDevCody
@WebDevCody 25 күн бұрын
Yeah that’s a good idea
@sincethatmoment
@sincethatmoment 25 күн бұрын
Does that only gove read only access to your private repo? I think qhen you add collaborators its full access?
@WebDevCody
@WebDevCody 25 күн бұрын
I specified read access in the code, hopefully it does what I think it does
@kyngcytro
@kyngcytro 27 күн бұрын
Awesome stuff. Quick question tho why not GitHub login so they don't have to type their handle and potentially type the wrong one?
@kyngcytro
@kyngcytro 27 күн бұрын
I mean the general sign up could be via GitHub. So we already have their GitHub handle/id and can just auto add them as collaborate when stripe comes back with a webhook.
@WebDevCody
@WebDevCody 27 күн бұрын
Yeah that’s a good point as well! I’m not sure if their GitHub username comes back in the login event or not, I’ll need to check
@kyngcytro
@kyngcytro 27 күн бұрын
@@WebDevCody I believe it does I remember from auth I implemented with Lucia and Arctic
@gold-junge91
@gold-junge91 27 күн бұрын
For scammer? That rip your accounts
@kyngcytro
@kyngcytro 27 күн бұрын
@@gold-junge91 not sure I understand how you mean?
@drewbird87
@drewbird87 27 күн бұрын
Just curious, is this project based on Marc Lou's "ShipFast"?
@Deliverant
@Deliverant 27 күн бұрын
the idea for sure
@nikolovlazar
@nikolovlazar 27 күн бұрын
I've seen a lot of starter kit products, and honestly Marc's "ShipFast" was one of the last ones I stumbled upon. Folks have been selling boilerplates since a long time ago.
@WebDevCody
@WebDevCody 27 күн бұрын
His revenue made me want to try making one, and I personally need one for my own stack. He uses daisy ui and other stuff I don’t care about
@drewbird87
@drewbird87 27 күн бұрын
@@WebDevCody - yeah, it’s crazy good money he’s reporting. I’d thought about how swapping out any of the pieces would make another product. Especially the meta-framework piece.
@gold-junge91
@gold-junge91 27 күн бұрын
Never buy a starter kit there a so much stuff on the internet. Sorry to say it
@Goyo_MGC
@Goyo_MGC 27 күн бұрын
Your method is great but have have two questions arising from this method: - Is there a cap on how many people are able to be added to the project - Isn't there a "confidentiality" issue with the roles displayed on github ? I believe you are able to see every other person with the same role in the repo, meaning that you would be able to see who bought the code as another client. The good old zip behind a s3 does not seem that bad in that regard. Have a great day :)
@WebDevCody
@WebDevCody 27 күн бұрын
You bring up some good points! I guess I could provide a zip download as well if people don’t want their name attached to the git repo
@acollierr17
@acollierr17 26 күн бұрын
There is no cap as far as the GitHub documentation says. The note mentions this for the "GitHub Free" plan, but this should correspond to all other plans minus Enterprise.
@rahultech77
@rahultech77 26 күн бұрын
The problem with this approach is that Cody would have to make zip files everytime he pushes some changes and have a flow to download them.
@Goyo_MGC
@Goyo_MGC 26 күн бұрын
@@rahultech77 Its fine, you can easily push to s3 on code changes with CI/CD tools nowadays
@acollierr17
@acollierr17 25 күн бұрын
@@rahultech77 You can automate the whole process with GitHub Releases. Cody barely has to do anything once he sets it all up.
@iamsomraj
@iamsomraj 26 күн бұрын
Hi Cody, can you show us how you handle drizzle migrations without losing the data on production? I have a hobby project but every-time the db changes, I lose all the data.
@rahultech77
@rahultech77 26 күн бұрын
What are the steps you're following?
@WebDevCody
@WebDevCody 26 күн бұрын
You should let it generate the migration scripts, inspect those manually, then run them
@iamsomraj
@iamsomraj 26 күн бұрын
I was following an article from Neon for Drizzle. It has db:generate, db:migrate commands. @rahultech
@dayg88
@dayg88 27 күн бұрын
What stops a person from buying access to the private repository and then cloning / publishing it on a public repository?
@oSpam
@oSpam 27 күн бұрын
There will be a non disclosure license inside providing he sets that up, so cloning and publishing the source (or using in any other way in breach of license) will be illegal. But like you say, just because it's illegal nothing is stopping you from doing it. But same way fraud is fraud whether you get caught or not, doesn't mean you should do it nor take the risk :)
@WebDevCody
@WebDevCody 27 күн бұрын
nothing really - that's basically pirating. I'd just assume 99% of the people who buy the starter kit are good people, and the other 1% won't have a platform to promote the cloned repo anyway.
@dayg88
@dayg88 27 күн бұрын
@@WebDevCody I understand, in any case I would not expose a private repository to the public. Sometimes happens to accidentaly push sensitive data (like passwords, access keys, etc) and then you would make them available to anyone who has access to the private repository as a collaborator. Not to mention that there is probably a limit to the number you can invite, but I'm not sure about that. Rather I would produce a secure-controlled package (in some format) to send to the customer (in some way). Just my opinion 😅
@cybor-gg
@cybor-gg 22 күн бұрын
Why don't you have them link their github accounts using oauth?
@FeinsterSchmaus
@FeinsterSchmaus 25 күн бұрын
supabase would be cool to choose from
@WebDevCody
@WebDevCody 25 күн бұрын
Eh yeah I’m not a fan of suoabase
@LukasSmith827
@LukasSmith827 27 күн бұрын
BLender artists could def take a hit at that lol
@GoldenPatrice
@GoldenPatrice 27 күн бұрын
fist
Dear GitHub, Why Did You Release This?
28:16
Theo - t3․gg
Рет қаралды 62 М.
React Junior Developer Interview (Questions & Challenge)
1:06:19
Cosden Solutions
Рет қаралды 102 М.
it takes two to tango 💃🏻🕺🏻
00:18
Zach King
Рет қаралды 26 МЛН
Chips evolution !! 😔😔
00:23
Tibo InShape
Рет қаралды 37 МЛН
I got my first DDoS (and what you can do to help prevent it)
8:27
Web Dev Cody
Рет қаралды 32 М.
I spent 2 years on this game
19:00
GlebThePolarCitizen
Рет қаралды 631
10 common mistakes with the Next.js App Router
20:37
Vercel
Рет қаралды 172 М.
I'm now VPS red pilled (and protecting with CloudFlare)
8:12
Web Dev Cody
Рет қаралды 30 М.
Building SaaS as a Software Engineer: I BLOCKED MYSELF!
9:55
Andrew Peacock
Рет қаралды 3,1 М.
Pretty much every website uses the wrong font size…
15:33
Theo - t3․gg
Рет қаралды 61 М.
125 Million Effected Accounts By FireBase Configuration
10:53
ThePrimeTime
Рет қаралды 102 М.
You might not need useEffect() ...
21:45
Academind
Рет қаралды 142 М.
React's New Controversial Override
13:02
Theo - t3․gg
Рет қаралды 50 М.
it takes two to tango 💃🏻🕺🏻
00:18
Zach King
Рет қаралды 26 МЛН