Skip to content

Latest commit

 

History

History
73 lines (48 loc) · 1.95 KB

README.md

File metadata and controls

73 lines (48 loc) · 1.95 KB

Sample React T-Shirt Store

The purpose this repository is to showcase the Google Pay integration in a store built with React.

A deployed version of this app can be found at this link.

Note: This sample app is not intended for use in a production environment! Please do not attempt to use it in this manner. For more information on deploying apps to production, see the React documentation.

Prerequisites

To configure and run this sample app, you will need the following prerequisites installed on your workstation:

Setup

Once the prerequisites are installed, follow the below steps to set up and use this sample app:

  1. Clone this repository

  2. In your terminal, navigate to the repository location

    cd /path/to/repo
  3. Install the Node.js dependencies

    npm install .
  4. Build index.html and bundle.js

    npm run build

Usage

Development server

To start a development server, follow the below steps:

  1. In your terminal, run npm start
  2. In your web browser, open http://localhost:3000/

The app will automatically reload if you change any of the source files. You will also see any lint errors in the console.

Build

This command builds the app and outputs the results to the dist/ directory. It bundles React in production mode and optimizes the build for the best performance. The build is minified and the filenames include the hashes.

  1. In your terminal, run npm run build

Support

For more information about React, refer to the React documentation.

For any questions on this sample app, please submit an issue to this repository.