- First you have go to https://firebase.google.com/ and and click "go to console"
- Create new project do you want to build than click settings icon and after dropdown list click "projcet settings"
- click add web and enter your nickname web app and click config after that copy that config and save in firebase.js
- click authentication you can choose what you want use but i just use google after you have config that settings copy GOOGLE_ID and GOOGLE_SECRET and save in .env.local
Authorization Error Error 400: redirect_uri_mismatch
You can't sign in to this app because it doesn't comply with Google's OAuth 2.0 policy.
If you're the app developer, register the redirect URI in the Google Cloud Console.
- first you go to APIs & Services and click the credentials added new authorized link javascript origins you can added http://localhosst:3000
- and create URIs http://localhost:3000/api/auth/callback/google
1). you can go to this link https://stripe.com/ to see the fiture and what you can get from this app
2). Click unto developers mode and see after dropdown you can click Documentation check to stripe checkout
in sidebar link to get guide made app with stripe. Than you can click Accept a payment
3). That have a guide how to set up stripe in your workspace.
- First you can go to stripe docs and got to
Stripe CLI
and than install that. - Then you can run stripe.exe if you use windows in your cmd than you can write stripe login in CLI
- Then you can write this
stripe listen --forward-to localhost:3000/api/webhook
- After that you have STRIPE_SIGNING_SECRET=your_secret_key_you_get_from_cli
- First you have to install micro and firebase-admin and made webhook.js in api couse all in api folder run in backend with node.js
- After you have install all you have install permission from firebase go to
console
and clickproject settings
then you can go toservice accounts
togenerate new private key
and than pull thae json file to you workspace and rename that to permisson
use this code payment : 424242424242424
end exp 04/24
secure code: 424
you have got admin dashboard and go to webhooks and add endpoints add your URL endpoint and than select event pick checkout.session.completed
Run commands
-
npm install
-
npm run dev
Run commands
-
npm install --global yarn
-
yarn install
-
yarn run dev
Open or create a .env
file then edit add this setting
# Authentication
GOOGLE_ID=key_goes_here
GOOGLE_SECRET=key_goes_here
NEXTAUTH_URL=http://localhost:3000
# Stripe
STRIPE_PUBLIC_KEY=key_goes_here
STRIPE_SECRET_KEY=key_goes_here
# Stripe Terminal/CLI
STRIPE_SIGNING_SECRET=key_goes_here
HOST=http://localhost:3000
# Need to add this to... google cloud
# http://localhost:3000/api/auth/callback/google
1). Next.js
2). React.js
3). Redux.js
4). tailwindcss
5). firebase and firebase-admin
6). nextAuth.js
7). heroicons.js
8). axios
9). stripe
10). Web Hooks
11). micro
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.