An open API service indexing awesome lists of open source software.

https://github.com/google-pay/react-store

Example shop/store built with React
https://github.com/google-pay/react-store

google-pay react shop store

Last synced: about 1 year ago
JSON representation

Example shop/store built with React

Awesome Lists containing this project

README

          

# 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](https://create-react-app.dev/docs/deployment/).

## Prerequisites

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

* [Node.js and NPM](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
* Any prerequisites included in the
[React Documentation](https://reactjs.org/docs/getting-started.html)

## Setup

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

1. Clone this repository
1. In your terminal, navigate to the repository location

```bash
cd /path/to/repo
```

1. Install the Node.js dependencies

```bash
npm install .
```

1. Build `index.html` and `bundle.js`

```bash
npm run build
```

## Usage

### Development server

To start a development server, follow the below steps:

1. In your terminal, run `npm start`
1. 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](https://reactjs.org/).

For any questions on this sample app, please
[submit an issue](https://github.com/google-pay/angular-store/issues/new) to
this repository.