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
- Host: GitHub
- URL: https://github.com/google-pay/react-store
- Owner: google-pay
- License: apache-2.0
- Created: 2020-05-21T18:04:16.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2025-01-07T11:58:38.000Z (over 1 year ago)
- Last Synced: 2025-01-07T12:41:14.739Z (over 1 year ago)
- Topics: google-pay, react, shop, store
- Language: TypeScript
- Homepage: https://payments-react-store.web.app
- Size: 9.55 MB
- Stars: 30
- Watchers: 11
- Forks: 57
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
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.