News for hackers. Stuff that matters.
Re:Ask HN: How come there is no example code for B2B-SaaS apps? by masonhensley on Saturday May 02, 2020 @11:57PM (#23056764)
I know it's a little early and it will be in Ruby on Rails. However, I'm working on open sourcing a clone of Stripe's Home [1] as part of a series of open source B2B applications & they should check all those boxes (besides the Java/Node)

I'm also happy to walk you (or others in the thread if time permits) though the source code of a closed source app I have over a video call if you need to grok the mechanics/db structure. (email in profile.)

It's got:

- multi-tenancy

- roles with-in each tenant

- sub-tenants (think engineering team vs accounting team vs hr team)

- accounts can be members of multiple tenants

- billing for each tenant (even sub tenants or inherit from root tenant)

- Super Admin & "Staff" roles

- Auditing

If anyone's interested in the open source app, follow here - https://twitter.com/tools_hub

[1] - https://stripe.com/blog/stripe-home

Re:Ask HN: How come there is no example code for B2B-SaaS apps? by hackerm0nkey on Sunday May 03, 2020 @07:49AM (#23058455)
Interested to see how you guys approached that for a Java B2B service. Thanks for the offer.
Re:Ask HN: How come there is no example code for B2B-SaaS apps? by dchuk on Sunday May 03, 2020 @12:13AM (#23056815)
I’m super interested in this, but not sure what I’m looking at at the twitter account. Is there something on github or similar to look at?
Re:Ask HN: How come there is no example code for B2B-SaaS apps? by masonhensley on Sunday May 03, 2020 @12:00PM (#23059799)
Ya, sorry. The twitter account is a placeholder while we work. Just spun up a repo you can follow.

https://github.com/Internal-Tools-Hub/CorpHome/blob/master/R...