What I'm looking for is: A SaaS app that allows people to create tenants (companies), and allows admin of the tenant to login and manage group of users, keep track of billing for each tenant, have super-admin who can access any tenant. But the rest of the app code is shared across the tenants. I'm looking for code that's either in Java or JavaScript(NodeJS). Are you in the same boat as me? If not, could you please point me to something? I really appreciate that!
Ask HN: How come there is no example code for B2B-SaaS apps?
1–10 of 94 posts
Re: Ask HN: How come there is no example code for B2B-SaaS apps?
#2Re: Ask HN: How come there is no example code for B2B-SaaS apps?
#3Re: Ask HN: How come there is no example code for B2B-SaaS apps?
#4The first thing that came to mind is server management tools like free alternatives to cpanel/webhostmanager
You'll have better luck searching online if you look for "free / open source" + specific problem/solution rather than "b2b saas app"
in this example i searched for "free alternative to cpanel"
Re: Ask HN: How come there is no example code for B2B-SaaS apps?
#5Re: Ask HN: How come there is no example code for B2B-SaaS apps?
#6For B2B, “super-admin” should only be done with logged permission. Usually an email request.
Here’s two projects to help point you in the right direction.
https://github.com/terraform-google-modules/terraform-google...
WorkOS is attempting to simplify this. https://m.youtube.com/watch?v=IR2QZQrzoiA&t=1433s
Re: Ask HN: How come there is no example code for B2B-SaaS apps?
#7Re: Ask HN: How come there is no example code for B2B-SaaS apps?
#8If you find any, please let us know. We are looking for a Laravel example.
Re: Ask HN: How come there is no example code for B2B-SaaS apps?
#9Re: Ask HN: How come there is no example code for B2B-SaaS apps?
#10What is the problem just build it your self. A simple template that has a login with a todo list can be extended to have a companies table. When you have added this, you can add a n to n relation between companies and users and poof you have a B2B saas app template.