- You must download and install Node.js if you don't already have it.
- You must create a Shopify partner account if you don’t have one.
- You must create a development store if you don’t have one.
-
Read the Main Product Readme: Familiarize yourself with the project by reading the main Product Readme.
-
Clone the Repository: Clone this repository to your local machine.
-
Create Environment File: In the
/web
folder of the project, create a.env
file. -
Install Dependencies: Run the following commands to install all necessary dependencies:
yarn install
cd web
yarn install
cd frontend
yarn install
- Build the Database:
- Inside /local-db you will find an optional way of creating a postgres docker container and a connection string to be used for local development
- There is a Readme + Dockerfile with all required steps
- Once the DB is setup you can build the development data by executing (from root):
yarn build:db
-
Install Shopify CLI: Ensure that the Shopify CLI is installed on your system.
-
Run the App: Start the application with the command:
yarn dev --reset
-
Connect to Shopify: Follow the on-screen instructions to input your Shopify details for connecting the application.
-
Update Environment File: After the app is connected and installed on your Shopify store, update the .env file with the newly generated SHOPIFY_API_KEY and SHOPIFY_API_SECRET_KEY from the Shopify Partners App Settings. Also, grant permissions for the app to access protected customer data.
-
Restart the Application: Restart the app and run:
yarn dev