serverless-stripe-frontend

by LikeCarter

GitHub Readme.md

Serverless Stripe Frontend

Version GitHub Codacy Badge

The frontend for a serverless stripe application. Built with Next.js and React.

You can see this demo app running on: https://serverless-stripe-frontend.herokuapp.com/

Setup

Prerequisites

  • Node.js >= 10.x.
  • Yarn
  • Stripe account to accept payments (free).

Configuration

Enter your configuration variables in config.js. Example:

const config = {
  stripe: {
    apiKey: 'pk_test_123',
    apiUrl: 'https://example.execute-api.us-east-1.amazonaws.com/dev/charges',
  },
};

export default config;

You need:

  • Your Stripe publishable key
  • Your backend's HTTP API endpoint url

Install dependencies

yarn

Running Tests

yarn test

Run locally

yarn dev

or build...

yarn build

and then run...

yarn start

Deploy to Heroku

The simplest way to test and deploy this project is to use Heroku.

Deploy

Thanks

serverless-stripe-frontend © 2019+, Carter Sprigings. Released under the MIT License.
Authored and maintained by Carter Sprigings with help from contributors (list).

okatee.com  ·  GitHub @likecarter