react-store
react-store copied to clipboard
Example shop/store built with React
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:
- Node.js and NPM
- Any prerequisites included in the React Documentation
Setup
Once the prerequisites are installed, follow the below steps to set up and use this sample app:
-
Clone this repository
-
In your terminal, navigate to the repository location
cd /path/to/repo -
Install the Node.js dependencies
npm install . -
Build
index.htmlandbundle.jsnpm run build
Usage
Development server
To start a development server, follow the below steps:
- In your terminal, run
npm start - 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.
- 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.