/paypal-checkout-demo

Demo app for paypal-checkout

Primary LanguageJavaScriptApache License 2.0Apache-2.0

PayPal Checkout Integration Patterns Demo WebApp

Description

The demo web application is a React app that shows different styles of PayPal integrations. It uses the wonderful Ace Code Editor to provide a live demonstration HTML and Javascript code which you can tweak and see rendered on the page.

Development

The source is found in the src/app directory.

Please feel free to follow the Contribution Guidelines to contribute to this demo application. PRs are welcome, but for major changes please raise an issue first.

Run locally in Docker

This command downloads all requirements, builds the source and starts the app inside the container. Nothing other than Docker needs to be installed.

$ docker-compose up

If you make code changes and want to see them reflected, you will need to rebuild the container with and start the updated container with the following commands

$ docker-compose build
$ docker-compose up

Run locally at command line

Download project requirements

$ npm install

Build the React app

$ npm run build

Start the app

$ node src/app/server