npm i
to install dependencies- Create
stripe
account (or sign in) - Create
.env
file with stripe credentials to set env variablesSTRIPE_PUBLISHABLE_KEY
andSTRIPE_SECRET_KEY
(see.env.example
) - Create products in your
stripe
account. Note that product ids are expected to be numbers- You may create them manually using stripe dashaboard
- Also you may launche script
create-or-update-test-products.js
via running commandnode create-or-update-test-products.js
node server.js
to run mock server (the default port is8080
, you can configure it in.env
file using variablePORT
)npm start chat
to run application as chat ornpm start <your_phone_number>
to run voice call