/nextjs-with-salable

Next.js 🤝 Salable Boilerplate

Primary LanguageTypeScript

Salable Next.js Starter

Hi 👋 This project is the simplest way to get started with Salable in a Next.js project. If you want to know more about Salable, check out the following:

The template is provided as a perfect "leap off" point to create your own Next application with Salable. There is basic code in place to integrate the pricing table, accept payment, and authorise based on the user's license capabilities. When the user is licensed (and has the Counter capability) they're able to see a basic <Counter /> component.

What is included?

  • Authentication 🔒 provided by Auth.js (formerly NextAuth).
  • [Prisma] ORM (w/ the associated Auth.js adapter).
  • TailwindCSS for styling 💅
  • ESLint.

Getting Started

  1. Clone this repository.
  2. cp .env.example .env.
  3. Fill in the .env file.
  4. Fill in the constants in app/components/PricingTable.tsx.
  5. Build something great.