This is just a starter repo for stripe backend integration. Check out the video for the code Youtube
You need to create a private key from firebase. Goto project settings --> service accounts --> click on Generate new private key
.
Place the downloaded file under src/files/
folder with name service_key.json
For compiling ts to js use.
tsc -w
For staring the node sever.
nodemon ./app/server.js
For local testing run the following command. This will forward the stripe events to your localhost node sever. (Only required for local testing)
stripe listen --forward-to localhost:4242/webhook
Use the uploader.js
to quickly populate the products for the e-commerce app. You need to have the service_key.json
file.
node uploader.js