Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 752 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 752 Bytes

Accept a payment examples in React for Payment Element

How to run locally

This is the React client for the sample and runs independently of the server. Running a backend server is a requirement and a dependency for this React front-end to work. See the README in the root of the project for more details.

To run the React client locally:

  1. Install dependencies

From this directory run:

npm install
  1. Start the react app
npm start

This will start the react server running on localhost:4242. Note that the backend server runs on localhost:5252, but the React UI will be available at localhost:4242. API requests to your backend are proxied by the create-react-app server using the proxy setting in ./package.json.