saas-boilerplate

saas-boilerplate

React Django AWS全栈SaaS开发加速工具包

SaaS-boilerplate集成React前端、Django后端和AWS云服务,为SaaS产品开发提供完整解决方案。内置身份验证、支付、订阅、多租户等核心模块,显著提升开发效率。成熟技术栈确保稳定性,支持多环境快速部署,使开发团队聚焦业务逻辑与创新功能实现。

SaaS BoilerplateReactDjangoAWS开发框架Github开源项目
<p align="center"> <img src="./.github/images/saas-bp-logo.png" alt="SaaS Boilerplate powered by Apptension"> </p> <h1 align="center">Build SaaS products faster in React, Django and AWS.</h1> <h2 align="center">A complete SaaS starter kit based on a battle-tested stack with out-of-the-box features every SaaS should have</h2> <h4 align="center"> <a href="https://github.com/apptension/saas-boilerplate"> <img src="https://img.shields.io/github/v/release/apptension/saas-boilerplate?style=for-the-badge" alt="Version"> </a> <a href="https://github.com/apptension/saas-boilerplate"> <img src="https://img.shields.io/github/license/apptension/saas-boilerplate?style=for-the-badge" alt="License"> </a> <a href="https://twitter.com/apptension"> <img src="https://img.shields.io/twitter/follow/apptension?style=for-the-badge&logo=twitter" alt="Follow Us on Twitter"> </a> <a href="https://discord.apptension.com"> <img src="https://img.shields.io/discord/1122849885335597088?style=for-the-badge&logo=discord" alt="Chat with us on Discord"> </a> </h4>

📖 SaaS Boilerplate Documentation

🌟 SaaS Boilerplate Page

🚀 SaaS Boilerplate Demo


Supercharge your SaaS development with our comprehensive starter kit, designed to accelerate your project and save you valuable time and resources. Our battle-tested boilerplate eliminates the need for extensive configuration and development work, allowing you to focus on innovation from day one.

SaaS Boilerplate includes essential features that every SaaS application requires, such as frontend, backend API, admin panel, and workers. With a scalable AWS-based architecture and continuous deployment, you can easily deploy multiple environments representing different stages in your pipeline.

Say goodbye to weeks of setup and coding. Our proven stack and ready-to-use features empower you to jumpstart your project and prioritize building your product's intellectual property. Unlock your SaaS potential faster than ever before and seamlessly transition from setup to innovation.

Getting started

Requirements

  • Install Docker
  • Install Node.js version 18 or above (which can be checked by running node -v). You can use nvm or n for managing multiple Node versions installed on a single machine.
  • Install pnpm version 9 or above (which can be checked by running pnpm --version)
  • (Windows only) Install WSL 2

Optional

  • Install Python version 3.11 (which can be checked by running python3 --version) and PDM version 2.3 or above (which can be checked by running pdm --version)
    • You need this one if you want to run pdm install command in packages/backend or packages/workers outside docker container
    • You can use pyenv for managing multiple Python versions installed on a single machine.

Fresh installation

Setup using CLI starter kit

You can use a special CLI tool to run a new local instance of the SaaS Boilerplate as soon as possible. It will clone the repository and take care of setting up the environment. Run the following command in the directory where you would like to create a new project:

Using npm:

npm init saas-boilerplate PATH

Using pnpm:

pnpm create saas-boilerplate PATH

Using yarn:

yarn create saas-boilerplate PATH

:information_source: Where PATH is a directory name where to initialize project.

:warning: The init directory needs to be empty!

Manual setup

For the manual setup clone this repository and follow the steps in Getting started guide.

Run existing project

:warning: If you are using a Windows machine, it's mandatory to have WSL 2 (Windows Subsystem for Linux) installed on your system to run the commands for installing dependencies and running the application.

Install dependencies

The project is configured to use pnpm workspaces, which means that you can install node_modules of all packages in repository, with single command:

pnpm install

Start the app

Start both: backend and webapp

pnpm saas up

Start backend

pnpm saas backend up

Start webapp

pnpm saas webapp up

Local documentation

In order to run your local documentation server execute following command:

pnpm saas docs up

Features

<details open> <summary> This boilerplate includes plenty of ready to use features that you can adjust to you needs: </summary> <br /> <a href="https://docs.demo.saas.apptoku.com/introduction/features/auth"> <img src="./.github/images/features/auth.png" alt="Authentication and authorization" /> </a> <br /><br /> <details open> <summary> <a href="https://docs.demo.saas.apptoku.com/introduction/features/auth">Authentication and authorization</a> </summary><br/> <ul> <li>User registration and login, including Facebook and Google OAuth</li> <li>Basic user data like name, surname, and user role for authorization</li> <li>User email address verification via a transactional email</li> <li>Password change and password recovery within the app flow</li> <li>User management panel in Django admin</li> <li>Two-factor authentication</li> </ul> </details> <a href="https://docs.demo.saas.apptoku.com/introduction/features/emails"> <img src="./.github/images/features/emails.png" alt="Emails" /> </a> <br /><br /> <details open> <summary> <a href="https://docs.demo.saas.apptoku.com/introduction/features/emails">Emails</a> </summary><br/> <ul> <li>A set of ready-to-send transactional emails (new user verification, password recovery, subscription renewals, errors, etc.)</li> <li>Ability to schedule emails at a given time</li> <li>Sending test emails directly from a Storybook</li> <li>Internationalization support out of the box</li> </ul> </details> <a href="https://docs.demo.saas.apptoku.com/introduction/features/payments"> <img src="./.github/images/features/payments.png" alt="Payments" /> </a> <br /><br /> <details open> <summary> <a href="https://docs.demo.saas.apptoku.com/introduction/features/payments">Payments</a> </summary><br/> <ul> <li>Integration with Stripe services and its dashboard</li> <li>No customer payment method data is stored locally</li> <li>Support for multiple payment methods and their management (storing for future use and removal)</li> </ul> </details> <a href="https://docs.demo.saas.apptoku.com/introduction/features/payments#subscription-management"> <img src="./.github/images/features/subscriptions.png" alt="Subscriptions" /> </a> <br /><br /> <details open> <summary> <a href="https://docs.demo.saas.apptoku.com/introduction/features/payments#subscription-management">Subscriptions</a> </summary><br/> <ul> <li>Ability to charge users immediately or to set up recurring payments</li> <li>Subscription plans support and ability to freely modify current plans</li> <li>Free trial subscription plan, a grace period for credit card issues</li> <li>Superadmin panel enables customer management (i.e. refunds) without the Stripe dashboard</li> </ul> </details> <a href="https://docs.demo.saas.apptoku.com/introduction/features/multi-tenancy"> <img src="./.github/images/features/multitenancy.png" alt="Multi-tenancy" /> </a> <br /><br /> <details open> <summary> <a href="https://docs.demo.saas.apptoku.com/introduction/features/multi-tenancy">Multi-tenancy</a> </summary><br/> <ul> <li>Start immediately with a default tenant provided upon account creation</li> <li>Add new tenants as needed to manage multiple entities within a single account</li> <li>Utilize three default roles ”Owner, Admin, and Member” to control tenant activities and collaboration</li> <li>Securely invite and manage new members within each tenant</li> </ul> </details> <a href="https://docs.demo.saas.apptoku.com/introduction/features/cms"> <img src="./.github/images/features/cms.png" alt="CMS integration (Contentful)" /> </a> <br /><br /> <details open> <summary> <a href="https://docs.demo.saas.apptoku.com/introduction/features/cms">CMS integration &#40;Contentful&#41;</a> </summary><br/> <ul> <li>Integration with Contentful service</li> <li>Example content model (image, title, and description)</li> <li>Ready to use CMS with a free plan</li> </ul> </details>
</details>

... and more

The full list with the descriptions can be found in the features documentation.

Tech stack

Front-end stack:

Back-end stack:

Infrastructure:

  • NX
  • AWS infrastructure written in AWS CDK
  • Github or Bitbucket

3rd party services:

  • Stripe
  • Contentful
  • Sentry
  • SonarCloud
  • OpenAI

The detailed stack description is available in the documentation.

How was the SaaS Boilerplate created?

In our experience in Apptension, we have built hundreds of web and mobile applications over the years and saw a bunch of standard features. For example, all applications (or at least 99% of them) need a login, email templating, payments and subscriptions, CMS integration, and more.

A broader list of elements that can be implemented in projects in this way was created after building dozens of different types of SaaS products. We analyzed them and noticed many common parts appeared virtually unchanged. So we created SaaS Boilerplate that is the base, and while it requires design or functional customization for a specific SaaS product, it dramatically reduces development time.

That's why you don't have to start by writing the code for that login or payment function. Instead, you can use off-the-shelf elements in those places and focus on creating the rest of the features unique to the project.

The development process is ongoing as we continually add new features and improve existing ones. We started with AWS Boilerplate, which evolved into the current SaaS Boilerplate. It originally contained only infrastructure (a configured AWS account) and was a template for the project, which had blanks for the back-end and front-end.

We saw that it was already a handy and very well-received tool, so the next natural step was to add more elements to it – front-end, back-end, and pack the relevant features that were most often repeated in different projects, including logging, CRUD, payments, integration with content pool, etc.

Our idea was that it shouldn't be just the code itself because SaaS Boilerplate also contains our know-how – because we gathered everything needed for development and around development in one package. So you don't have to think about choosing code formatting, matching different tools and their subsequent configuration, etc. Moreover, such a package is proven and battle-tested – you can just upload it to the cloud and start so-called heavy development.

Who are we?

We're Apptension, a team that turns ideas into world-class software using expertise in technology, design, and product management. We work with founders, investors, and creative agencies to help them bring uncommon ideas to the market.

Our partners value our outside-the-box thinking, clear and honest communication, and reliability – even in the most dynamic and time-compressed projects. Among our clients – plenty of early-stage startups, as well as international tech behemoths like Netflix and Uber. We live and breathe tech – and we're darn good at it.

To bring even more value to our partners, we create bespoke tools (like SaaS Boilerplate), allowing us to shorten time-to-market while avoiding technical debt.

License

SaaS Boilerplate is licensed under the MIT License.

Contributing to SaaS Boilerplate

We welcome contributions from anyone interested in improving SaaS Boilerplate. Please keep in mind that this project follows a Code of Conduct to ensure a welcoming community for all.

For more detailed information on how to contribute to this project, please refer to our Contributing Guide.

If you have any questions about contributing, please join our Discord server - we are happy to help you!

Thank you for considering contributing to SaaS

编辑推荐精选

Refly.AI

Refly.AI

最适合小白的AI自动化工作流平台

无需编码,轻松生成可复用、可变现的AI自动化工作流

酷表ChatExcel

酷表ChatExcel

大模型驱动的Excel数据处理工具

基于大模型交互的表格处理系统,允许用户通过对话方式完成数据整理和可视化分析。系统采用机器学习算法解析用户指令,自动执行排序、公式计算和数据透视等操作,支持多种文件格式导入导出。数据处理响应速度保持在0.8秒以内,支持超过100万行数据的即时分析。

AI工具酷表ChatExcelAI智能客服AI营销产品使用教程
TRAE编程

TRAE编程

AI辅助编程,代码自动修复

Trae是一种自适应的集成开发环境(IDE),通过自动化和多元协作改变开发流程。利用Trae,团队能够更快速、精确地编写和部署代码,从而提高编程效率和项目交付速度。Trae具备上下文感知和代码自动完成功能,是提升开发效率的理想工具。

AI工具TraeAI IDE协作生产力转型热门
AIWritePaper论文写作

AIWritePaper论文写作

AI论文写作指导平台

AIWritePaper论文写作是一站式AI论文写作辅助工具,简化了选题、文献检索至论文撰写的整个过程。通过简单设定,平台可快速生成高质量论文大纲和全文,配合图表、参考文献等一应俱全,同时提供开题报告和答辩PPT等增值服务,保障数据安全,有效提升写作效率和论文质量。

AI辅助写作AI工具AI论文工具论文写作智能生成大纲数据安全AI助手热门
博思AIPPT

博思AIPPT

AI一键生成PPT,就用博思AIPPT!

博思AIPPT,新一代的AI生成PPT平台,支持智能生成PPT、AI美化PPT、文本&链接生成PPT、导入Word/PDF/Markdown文档生成PPT等,内置海量精美PPT模板,涵盖商务、教育、科技等不同风格,同时针对每个页面提供多种版式,一键自适应切换,完美适配各种办公场景。

AI办公办公工具AI工具博思AIPPTAI生成PPT智能排版海量精品模板AI创作热门
潮际好麦

潮际好麦

AI赋能电商视觉革命,一站式智能商拍平台

潮际好麦深耕服装行业,是国内AI试衣效果最好的软件。使用先进AIGC能力为电商卖家批量提供优质的、低成本的商拍图。合作品牌有Shein、Lazada、安踏、百丽等65个国内外头部品牌,以及国内10万+淘宝、天猫、京东等主流平台的品牌商家,为卖家节省将近85%的出图成本,提升约3倍出图效率,让品牌能够快速上架。

iTerms

iTerms

企业专属的AI法律顾问

iTerms是法大大集团旗下法律子品牌,基于最先进的大语言模型(LLM)、专业的法律知识库和强大的智能体架构,帮助企业扫清合规障碍,筑牢风控防线,成为您企业专属的AI法律顾问。

SimilarWeb流量提升

SimilarWeb流量提升

稳定高效的流量提升解决方案,助力品牌曝光

稳定高效的流量提升解决方案,助力品牌曝光

Sora2视频免费生成

Sora2视频免费生成

最新版Sora2模型免费使用,一键生成无水印视频

最新版Sora2模型免费使用,一键生成无水印视频

Transly

Transly

实时语音翻译/同声传译工具

Transly是一个多场景的AI大语言模型驱动的同声传译、专业翻译助手,它拥有超精准的音频识别翻译能力,几乎零延迟的使用体验和支持多国语言可以让你带它走遍全球,无论你是留学生、商务人士、韩剧美剧爱好者,还是出国游玩、多国会议、跨国追星等等,都可以满足你所有需要同传的场景需求,线上线下通用,扫除语言障碍,让全世界的语言交流不再有国界。

下拉加载更多