React Storefront helps developers build sub-second e-commerce progressive web apps in record time. This guide shows you how to deploy a React Storefront app on Layer0.
Creating a React Storefront App
To create a new React Storefront app, run:
Terminal
npm create react-storefront@^8.0.0 myapp
Select “Yes” when answering the following question:
Terminal
? Will you be deploying your app on Layer0? › no / yes
Running Locally
To run your app locally:
Terminal
npm start
Deploying
Deploying requires an account on Layer0. Sign up here for free. Once you have an account, you can deploy to Layer0 by running the following in the root folder of your project:
Terminal
0 deploy
Prefetching
See the Prefetching Guide in the React Storefront documentation.