Skip to content

techTutorialsYTube/backend-stripe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Backend for ecommerce app

This is just a starter repo for stripe backend integration. Check out the video for the code Youtube

Firestore service key for admin access

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 files/ folder with name service_key.json

Running

For compiling ts to js use.

tsc -w

For staring the node sever.

nodemon ./app/server.js

Stripe testing

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

Firestore products

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

About

backend API project for stripe projects.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published