Overview
BoilerplateMonorepo is a comprehensive boilerplate that provides all the basic features needed to set up a Software as a Service (SaaS) application. It includes a Next.js app for user authentication, handling Stripe subscriptions, and updating user information. Additionally, it offers a statically generated blog with articles written using MDXA GraphQL API built with TypeGraphQL, Prisma, and Apollo server. The boilerplate also includes various features such as a pretty UI with light/dark mode using Chakra UI, a typesafe ORM with Prisma, a GraphQL API using TypeGraphQL and Apollo, and more. With BoilerplateMonorepo, developers can save time on repetitive set-up tasks and start building their applications right away.
Features
- Authentication using Ory Kratos
- Subscriptions with Stripe
- Pretty UI with light/dark mode using Chakra UI
- Typesafe ORM with Prisma
- GraphQL API using TypeGraphQL & Apollo
- Fetching, caching, and updating asynchronous data with React Query
- Blog using MDX
- Internationalisation (i18n) using next-translate
- SEO with Next SEO
- CI / CD using GitHub Actions
- E2E tests with Cypress & React Testing Library
- Unit & integration tests with Jest
- UI component explorer with Storybook
- Error tracking with Sentry
- Logging, GraphQL codegen, git hooks for linting, Prettier, ESLint etc.
Installation
To install and set up BoilerplateMonorepo, follow these steps:
- Clone the repository:
git clone https://github.com/{username}/{repository}.git
- Install the dependencies:
cd {repository}
yarn install
Configure the environment variables:
- Open the
.envfile. - Replace the placeholder values with your own tokens and URLs, such as the URL of your MySQL database for the API.
- Save the file.
- Open the
Run the API, site, blog, and Ory Kratos separately:
- For detailed instructions on setting up each component, refer to the respective sections in the documentation.
Once all the components are set up, you can start building your application with BoilerplateMonorepo.
Summary
BoilerplateMonorepo is a comprehensive boilerplate that provides all the necessary features to quickly set up a SaaS application. It includes features such as authentication, subscriptions, a pretty UI with dark/light mode, a GraphQL API, a blog, and much more. The installation process is straightforward, requiring the cloning of the repository, configuring the environment variables, and running the necessary components. With BoilerplateMonorepo, developers can save time on repetitive setup tasks and focus on building their SaaS applications.