marclou / stripe-sub

The EASY way to set up Stripe subscriptions

Home Page:https://youtu.be/ag7HXbgJtuk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stripe subscriptions

1. Clone the project

git clone https://github.com/marclou/stripe-sub.git
cd stripe-subscriptions

2. Create an .env.local at the root and add the following variables

# AUTHENTICATION (tuto > https://shipfa.st/docs/features/magic-links)
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=************

# EMAILS (tuto > https://shipfa.st/docs/features/emails)
EMAIL_SERVER=smtp://*********

# DATABASE (tuto > https://shipfa.st/docs/features/database)
MONGODB_URI=mongodb://127.0.0.1:27017/**********

# STRIPE PAYMENTS (tuto: https://shipfa.st/docs/features/payments)
STRIPE_SECRET_KEY=rk_test_**********
STRIPE_WEBHOOK_SECRET=whsec_**********

3. Run the project

npm i
npm run dev

4. Add your Stripe info in component

Enjoy! — Marc

PS: Want to ship you SaaS in days, not weeks? Join 3,000+ makers on Shipfast!

About

The EASY way to set up Stripe subscriptions

https://youtu.be/ag7HXbgJtuk


Languages

Language:JavaScript 98.4%Language:CSS 1.6%