Supa Stripe Stack

screenshot of Supa Stripe Stack
react
tailwind
headless-ui
prisma

Supa Stripe Stack

A Remix & Stripe Stack, backed by Supabase (driven by Prisma), that integrates authentication, subscriptions (multi-currency, month and year intervals) and handling tier limit.

Overview

Supa-Stripe-Stack is a comprehensive stack that integrates Supabase, Stripe, and Fly to handle authentication, subscriptions, multi-currency support, and more. It offers a range of features such as authentication with email/password, subscription management with tier limits, database ORM with Prisma, and styling with Tailwind. The stack also includes tools for production-ready Supabase database, healthcheck endpoints, and email/password authentication with cookie-based sessions. Additionally, it provides support for forms schema validation, code formatting with Prettier, linting with ESLint, and static types with TypeScript. While unit testing and E2E testing are currently not included, the developers plan to add them in the future.

Features

  • Authentication (email/password) with Supabase
  • Subscriptions with Stripe
  • Multi-currency support
  • Interval options for subscriptions
  • Taking notes app demo with tier limits
  • Fly app deployment with Docker
  • Production-ready Supabase Database
  • Healthcheck endpoint for Fly backups region fallbacks
  • Email/Password Authentication with cookie-based sessions
  • Database ORM with Prisma
  • Forms Schema validation with Zod and React Zorm
  • Styling with Tailwind
  • Code formatting with Prettier
  • Linting with ESLint
  • Static Types with TypeScript 4.9

Installation

  1. Create a Supabase project and database. Save the Database Password and other secrets.
  2. Install the Stripe CLI and create a Stripe account. Copy the Stripe secrets.
  3. Set environment variables in your .env file including SERVER_URL, SESSION_SECRET, and DEFAULT_CURRENCY.
  4. Other environment variables can be set in the .env file for customization.

Summary

Supa-Stripe-Stack is a powerful stack that combines Supabase, Stripe, and Fly to provide a complete solution for authentication, subscriptions, and multi-currency support. It offers a range of features and includes tools for database management, authentication, forms validation, and more. The stack is easy to install and configure, making it a great choice for developers looking for a ready-to-use solution for building web applications with Supabase and Stripe integration.

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

tailwind
Tailwind

Tailwind CSS is a utility-first CSS framework that provides pre-defined classes for building responsive and customizable user interfaces.

headless-ui
Headless UI

Headless UI is a set of completely unstyled, fully accessible UI components for React, Vue, and Alpine.js that empower developers to build their own fully accessible custom UI components. Headless UI allows developers to focus on building accessible and highly functional user interfaces, without the need to worry about styling or layout.

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.

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.

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.