Remember to rename .env.example to .env and not commit it to Github!
.env.example
.env
Choose database provider
Firestore
MongoDB
Choose payment provider
Stripe
LemonSqueezy
Choose authentication providers (if needed)
Google
Facebook
Magic links (Password-less)
Configure and test your app
If you have setup API keys for Database and Payment proceed to these steps.
Set following .env variables: SITE_URL= NEXTAUTH_URL= NEXTAUTH_SECRET=
SITE_URL=
NEXTAUTH_URL=
NEXTAUTH_SECRET=
Configure appConfig.ts to your needs. Core app functionality is controlled from here.
appConfig.ts
Set your DatabaseProvider and PaymentProvider to the ones which you are using arrow-up-right
DatabaseProvider
PaymentProvider
Create products/subscriptions in your payment provider and set priceId in the appConfig.
priceId
Run npm install and npm run dev to test your app :)
npm install
npm run dev
Note: Remember to rename .env.example to .env and not commit it to Github!
Last updated 1 year ago