Project Icon

saas-boilerplate

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

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

SaaS Boilerplate powered by Apptension

Build SaaS products faster in React, Django and AWS.

A complete SaaS starter kit based on a battle-tested stack with out-of-the-box features every SaaS should have

Version License Follow Us on Twitter Chat with us on Discord


📖 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

This boilerplate includes plenty of ready to use features that you can adjust to you needs:
Authentication and authorization

Authentication and authorization
  • User registration and login, including Facebook and Google OAuth
  • Basic user data like name, surname, and user role for authorization
  • User email address verification via a transactional email
  • Password change and password recovery within the app flow
  • User management panel in Django admin
  • Two-factor authentication
Emails

Emails
  • A set of ready-to-send transactional emails (new user verification, password recovery, subscription renewals, errors, etc.)
  • Ability to schedule emails at a given time
  • Sending test emails directly from a Storybook
  • Internationalization support out of the box
Payments

Payments
  • Integration with Stripe services and its dashboard
  • No customer payment method data is stored locally
  • Support for multiple payment methods and their management (storing for future use and removal)
Subscriptions

Subscriptions
  • Ability to charge users immediately or to set up recurring payments
  • Subscription plans support and ability to freely modify current plans
  • Free trial subscription plan, a grace period for credit card issues
  • Superadmin panel enables customer management (i.e. refunds) without the Stripe dashboard
Multi-tenancy

Multi-tenancy
  • Start immediately with a default tenant provided upon account creation
  • Add new tenants as needed to manage multiple entities within a single account
  • Utilize three default roles ”Owner, Admin, and Member” to control tenant activities and collaboration
  • Securely invite and manage new members within each tenant
CMS integration (Contentful)

CMS integration (Contentful)
  • Integration with Contentful service
  • Example content model (image, title, and description)
  • Ready to use CMS with a free plan

... 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

项目侧边栏1项目侧边栏2
推荐项目
Project Cover

豆包MarsCode

豆包 MarsCode 是一款革命性的编程助手,通过AI技术提供代码补全、单测生成、代码解释和智能问答等功能,支持100+编程语言,与主流编辑器无缝集成,显著提升开发效率和代码质量。

Project Cover

AI写歌

Suno AI是一个革命性的AI音乐创作平台,能在短短30秒内帮助用户创作出一首完整的歌曲。无论是寻找创作灵感还是需要快速制作音乐,Suno AI都是音乐爱好者和专业人士的理想选择。

Project Cover

有言AI

有言平台提供一站式AIGC视频创作解决方案,通过智能技术简化视频制作流程。无论是企业宣传还是个人分享,有言都能帮助用户快速、轻松地制作出专业级别的视频内容。

Project Cover

Kimi

Kimi AI助手提供多语言对话支持,能够阅读和理解用户上传的文件内容,解析网页信息,并结合搜索结果为用户提供详尽的答案。无论是日常咨询还是专业问题,Kimi都能以友好、专业的方式提供帮助。

Project Cover

阿里绘蛙

绘蛙是阿里巴巴集团推出的革命性AI电商营销平台。利用尖端人工智能技术,为商家提供一键生成商品图和营销文案的服务,显著提升内容创作效率和营销效果。适用于淘宝、天猫等电商平台,让商品第一时间被种草。

Project Cover

吐司

探索Tensor.Art平台的独特AI模型,免费访问各种图像生成与AI训练工具,从Stable Diffusion等基础模型开始,轻松实现创新图像生成。体验前沿的AI技术,推动个人和企业的创新发展。

Project Cover

SubCat字幕猫

SubCat字幕猫APP是一款创新的视频播放器,它将改变您观看视频的方式!SubCat结合了先进的人工智能技术,为您提供即时视频字幕翻译,无论是本地视频还是网络流媒体,让您轻松享受各种语言的内容。

Project Cover

美间AI

美间AI创意设计平台,利用前沿AI技术,为设计师和营销人员提供一站式设计解决方案。从智能海报到3D效果图,再到文案生成,美间让创意设计更简单、更高效。

Project Cover

稿定AI

稿定设计 是一个多功能的在线设计和创意平台,提供广泛的设计工具和资源,以满足不同用户的需求。从专业的图形设计师到普通用户,无论是进行图片处理、智能抠图、H5页面制作还是视频剪辑,稿定设计都能提供简单、高效的解决方案。该平台以其用户友好的界面和强大的功能集合,帮助用户轻松实现创意设计。

投诉举报邮箱: service@vectorlightyear.com
@2024 懂AI·鲁ICP备2024100362号-6·鲁公网安备37021002001498号