Public | Automated Build

Last pushed: 2 years ago
Short Description
Foo
Full Description

PayPal Example

Payment example with PayPal, using Koa

Install

Install dependencies:

$ npm install

Build

Build vendors and scripts with gulp:

$ npm install -g gulp
$ gulp webpack

Or with webpack CLI:

$ npm install -g webpack
$ webpack

Configure

Create a .paypalrc file with your paypal credentials:

{
  "paypal": {
    "client_id": "...",
    "client_secret": "..."
  }
}

Test

With babel-node and --harmony flag, run:

$ npm start

Then, open http://localhost:3000

Contribute

Using nodemon with babel-node to watch server files:

$ DEBUG=paypal-* nodemon --ignore public/ --exec npm run babel-node -- server.js

Watch public files with webpack and browser-sync to reload:

$ webpack --watch
Docker Pull Command
Owner
markotom
Source Repository