Boilerplate

screenshot of Boilerplate
express
nextjs
react
chakra-ui
prisma

Boilerplate

Fullstack SaaS boilerplate!

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:

  1. Clone the repository:
git clone https://github.com/{username}/{repository}.git
  1. Install the dependencies:
cd {repository}
yarn install
  1. Configure the environment variables:

    • Open the .env file.
    • Replace the placeholder values with your own tokens and URLs, such as the URL of your MySQL database for the API.
    • Save the file.
  2. 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.
  3. 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.

express
Express

Express.js is a simple Node.js framework for single, multi-page, and hybrid web applications.

nextjs
Next.js

Next.js is a React-based web framework that enables server-side rendering, static site generation, and other powerful features for building modern web applications.

react
React

React is a widely used JavaScript library for building user interfaces and single-page applications. It follows a component-based architecture and uses a virtual DOM to efficiently update and render UI components

chakra-ui
Chakra UI

Chakra UI is a popular open-source React component library that provides a set of accessible and customizable UI components to help developers create modern web applications.

prisma
Prisma

Prisma is a server-side library that helps developers read and write data to the database in an intuitive, efficient and safe way.

fullstack
Fullstack Boilerplates

A fullstack boilerplate provides a starter application that includes both frontend and backend. It should include database, auth, payments, user roles and other backend services to build a fully featured saas or webapps.

template
Templates & Themes

A template or theme refers to a pre-designed layout or structure that provides a basic framework for building a specific type of application or website. It typically includes good design, placeholder content and functional features, allowing developers to customize and fill in the details according to their specific needs.

eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.

framer-motion
Framer Motion

Alpine.js is a lightweight JavaScript framework that simplifies the process of creating dynamic, reactive user interfaces on the web. It uses a declarative syntax that offers a higher level of abstraction compared to vanilla JavaScript, while being more performant and easier to use than jQuery.

graphql
Graphql

A website that uses GraphQL as a query language to manage data fetching and state management. This includes features such as a strongly typed schema, client-side caching, and declarative data fetching to streamline data management and optimize website performance.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.