5
15 Comments

Java SaaS frameworks?

I have seen hundreds of awesome SaaS boilerplates free or paid for. However I have yet to find any Java based (at least backend) SaaS templates/Boilerplate.

There is an AWS serverless SaaS article: https://aws.amazon.com/blogs/apn/building-serverless-saas-microservices-with-aws-lambda-layers/

My question is why?

I am looking at embarking on my own SaaS product journey. The advice I have been given is stick to the languages you know for obvious reasons. Given that I have over 20 years java experience and some React/Angular/Vue exposure, should I go ahead and build something from scratch as a solo founder or learn a new framework such as Laravel or Rails etc?

on December 1, 2022
  1. 2

    Hi @littlebuddha,
    you can have a look at https://Bootify.io - an application generator for Spring Boot. It is more a generic application builder and less focused on typical SaaS features, but should save a lot of time nevertheless when modelling your backend. Frontend currently has only Thymeleaf options, but the REST APIs are working fine if you would like to add your custom React/Angular/Vue stack.
    All the best, Thomas
    PS - Thymeleaf + HTMX getting a lot of traction currently and you get a maintainable app without an SPA

    1. 2

      Bootify looks great, I'll definitely check it out. Been hearing a lot about HTMX lately. I
      know this may not be a popular statement, but in my opinion the standard frontend frameworks are exceptionally complex and bloated/brittle at present. Although that could be that I'm more server side focused.

      Thank you for your response.

      1. 1

        Thank you - I'm also coming more from the backend side of things and frontend can be very hard (unnecessarily) - especially true for React. So Thymeleaf with HTMX takes the pain away, you may add Tailwind CSS for some fencyness:-)

    2. 2

      +1 for HTMX, love it!

      1. 1

        Agreed, definitely going to give that a deeper look.

  2. 1

    Top SaaS frameworks you can go with:

    Symfony
    Docker
    Angular
    Laravel
    Vue
    Django

  3. 1

    I myself chose Go for my startup, despite of having 20yrs of Java experice, and knowing Go only a little.

    There were few good reasons for this:

    • I simply got bored with Java. I have it in my full time job, I've been doing this for years. Sure the technology is still great, but I simply wanted to have some fun working on my project and learn something new
    • Java, when compared to Go is terribly slow! It also takes insane amounts of memory. Simple web service in Go needs 5-10MB of RAM and it can handle thousands concurrent requests thanks to goroutines (lightweight threads). Same thing in Java requires GBs of RAM and pretty powerful machine. So, it's also about using a tool that fits for the project
    • Go feels very lightweight and is fun to work with. Works great with VSCode, no need for complex and expensive IDE, projects build in seconds

    Highly recommend!

    1. 1

      Thanks for the feedback.

      1. 1

        Out of interest which Go frameworks do you recommend?

  4. 1

    I don't know about any Java SaaS boilerplates geared towards indie hackers, and that might be a product you could make in and of itself!

    I'm an intermediate Java programmer (most of my experience is JavaScript or C#), but if I wanted to spin up a SaaS product very quickly with the JVM I would use:

    • Springboot
    • Lombok
    • PostgreSQL
    • Gradle
    • Tomcat
    • IntelliJ
    • Templating library w/ htmx (or your favorite frontend technology)

    One of the coolest things about the JVM though is there's a vast array of tools and languages like Kotlin, Groovy, JRuby, and many more, very mature and widely supported – great open source community as well.

    Work with what you know, don't feel pressured to do Javascript, PHP, or Python backends unless you really want to learn that tech. I think your 20 years of Java experience is definitely the way to go instead of trying to learn hip, shiny new tools though.

    1. 2

      True and java/Spring Boot/JakartaEE has come a long way in the last 5 or so years.

      "might be a product you could make in and of itself!"

      You could be right.

      Alternatively I could at least build out my ideas with it and "wrap" it with an existing boilerplate from another tech stack.

      1. 1

        You could, and it'd be a great chance to learn that stack, but just remember you have to maintain that boilerplate or pay someone else to if you ever need features "outside of the box". I'm sure a blend could work well either way.

  5. 1

    The startup ecosystem has moved much faster and titled towards Javascript frameworks. Because its relatively easy to code in React/HTML and also build backend with NodeJs all with Javascript knowledge. That is why more people are moving towards these frameworks. This also led to more people building SaaS boilerplates around Javascript.

    I have been working in Micro SaaS Ecosystem and here are a few that really picked up momentum.

    • UseGravity: Build a Node.js & React SaaS app at warp speed. Gravity is a leading Node.js & React SaaS boilerplate. You can get all features you need in a single install. Making $100K per year.
    • SaaSPegasus: The Django SaaS Starter Kit. Pegasus ships with a gallery of common SaaS use-cases, ready to use in your own project. Making $50K/year.
    • DivJoy: React code base generator that works with Material UI, Firebase, Stripe, Vercel, and Mailchimp**. Making $40K+ in annual revenue.**
    • SaaS Starter Kits: A starter template with Docker, Kubernetes, CI/CD, and more. A Laravel starter kit with subscriptions, invoices, default pages, tests, pipelines, development tooling and deployment solutions.
    • ServerlessPage: Build a SaaS faster with React Serverless SaaS is aiming to be the perfect starting point for your next React app to build full-stack SaaS applications. Save time and skip implementing authentication, payments, teams, and more. Making $1200 MRR.
    1. 2

      Thank you for the feedback

Trending on Indie Hackers
I'm a lawyer who launched an AI contract tool on Product Hunt today — here's what building it as a non-technical founder actually felt like User Avatar 151 comments Never hire an SEO Agency for your Saas Startup User Avatar 65 comments A simple way to keep AI automations from making bad decisions User Avatar 65 comments “This contract looked normal - but could cost millions” User Avatar 54 comments 👉 The most expensive contract mistakes don’t feel risky User Avatar 41 comments We automated our business vetting with OpenClaw User Avatar 31 comments