Skip to content

This is the code for the Shopify Producer application to integrate with the DFC standard.

License

Notifications You must be signed in to change notification settings

yalla-coop/food-data-collaboration-producer

Repository files navigation

Food Data Collaboration Producer

Getting Started / How to Run the App Locally

Pre-Requirements

  1. You must download and install Node.js if you don't already have it.
  2. You must create a Shopify partner account if you don’t have one.
  3. You must create a development store if you don’t have one.

Running a local Version of the App

  1. Read the Main Product Readme: Familiarize yourself with the project by reading the main Product Readme.

  2. Clone the Repository: Clone this repository to your local machine.

  3. Create Environment File: In the /web folder of the project, create a .env file.

  4. Install Dependencies: Run the following commands to install all necessary dependencies:

yarn install
cd web
yarn install
cd frontend
yarn install
  1. 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
  1. Install Shopify CLI: Ensure that the Shopify CLI is installed on your system.

  2. Run the App: Start the application with the command:

yarn dev --reset
  1. Connect to Shopify: Follow the on-screen instructions to input your Shopify details for connecting the application.

  2. 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.

  3. Restart the Application: Restart the app and run:

yarn dev

Useful Resources

About

This is the code for the Shopify Producer application to integrate with the DFC standard.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published