React Native eCommerce Boilerplate
This guide will walk you through how you can download and set up the react-native boilerplate using our CLI. Then we’ll go over how to run the app. At the moment we’ve only tested this on iOS but we’ll be doing it for Android soon.
Getting started with React Native eCommerce
To get started with your own React Native eCommerce App you simply need to use our CLI. It will walk you through the process
npx @crystallize/cli my-project
Once you do that, you'll be greeted with this screen where you have the option to select our various boilerplates. But for the sake of this guide, we’ll go with React Native. Use the arrow keys to navigate to the bottom of the list. Once you find the React Native option press enter.
Then you’ll be asked to select a Crystallize Tenant. You can either choose our default tenant or you can create your own tenant by signing up on Crystallize.
After choosing your tenant you’ll be asked to enter a Service API URI, you can choose our default one or enter your own service API URI if you have one.
Running on iOS
Configuring environment variables
To configure environment variables you can find the env file at the root of the project. Feel free to change them if you have a tenant and service API set up.
Next steps: Service API
In order to manage a fully operational eCommerce, you need to manage user authentication, basket validation, payment, and such.