leerob / next-saas-starter

Get started quickly with Next.js, Postgres, Stripe, and shadcn/ui.
https://next-saas-start.vercel.app
MIT License
5.44k stars 607 forks source link

Use template without stripe #39

Closed Surgical17 closed 1 month ago

Surgical17 commented 1 month ago

Hi There

Unfortunately Stripe is not available in my country, but I would like to use and build from this template as a learning experience (Just using the DB, Dashboard Login etc.

How can I setup or change the setup.ts to create a db without stripe? Or will it be too much work to set it up without it?

leerob commented 1 month ago

Hey! I'd recommend placing the setup script or other code that references in v0 and it can help you refactor / be your pair programmer to change out Stripe 😄

https://v0.dev/

baiwfg2 commented 1 month ago

I also have that need. When running pnpm db:setup , I encountered this issue:

$ pnpm db:setup

> @ db:setup D:\tmp\next-saas-starter-main
> npx tsx lib/db/setup.ts

Step 1: Checking if Stripe CLI is installed and authenticated...
Stripe CLI is not installed. Please install it and try again.
To install Stripe CLI, follow these steps:
1. Visit: https://docs.stripe.com/stripe-cli
2. Download and install the Stripe CLI for your operating system
3. After installation, run: stripe login
After installation and authentication, please run this setup script again.
 ELIFECYCLE  Command failed with exit code 1.