Skip to content

marclou/stripe-sub

Repository files navigation

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!