Launch your SaaS faster with this comprehensive starter kit. Built with Next.js, Stripe, Supabase, and shadcn/ui.
- Stripe Integration for secure payments and subscription management
- Google Analytics for tracking user behavior and optimizing performance
- Supabase Backend for PostgreSQL with real-time and RESTful API
- shadcn/ui Components for customizable, accessible React components
- Node.js (v14 or later)
- npm or yarn
- Supabase account
- Stripe account
- Google Analytics account
-
Clone the repository:
git clone https://github.com/bobcoi03/based-saas-starter-kit.git cd based-saas-starter-kit
-
Install dependencies:
npm install # or yarn install
-
Set up environment variables: Create a
.env.local
file in the root directory and add the following variables:NEXT_PUBLIC_SUPABASE_URL=<your_supabase_project_url> NEXT_PUBLIC_SUPABASE_ANON_KEY=<your_supabase_anon_key> NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=your_stripe_publishable_key_here GOOGLE_ANALYTICS=your-analytics-key
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.
npm run build
# or
yarn build
npm start
# or
yarn start
-
/utils/supabase/
: Contains Supabase client, middleware, and server utilitiesclient.ts
middleware.ts
server.ts
-
/utils/stripe/
: Contains Stripe utilitystripe.ts
: Sets up and exports the Stripe client
This project uses Supabase for backend services. To generate types for your Supabase tables, refer to the Supabase documentation on generating types.
Stripe is used for payment processing. For more information on implementing Stripe features, refer to the Stripe documentation.
Contributions are welcome! Please feel free to submit a Pull Request.
If you find this project helpful, consider buying the creator a coffee:
Follow @justwrapapi on Twitter for updates and more projects!