Skip to content

About

Backend code for react native stripe ecommerce app.

Resources

Stars

7 stars

Watchers

1 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

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 src/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 code for react native stripe ecommerce app.

Resources

Stars

7 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages