Insert here a brief overview of the page's content
This article serves as a guide to getting connectors set up for local development.
Insert here an image - centered - related to the subject here
Insert here a description of the section one
bundle install
rake db:setup
Before starting the connector, the environment variables must be set:
From your console run: cp config/application.sample.yml config/application.yml
Your application.yml
file should look something like this:
encryption_key1: encryption_key2: SIDEKIQ_USERNAME: admin SIDEKIQ_PASSWORD: password REDIS_URL: redis://localhost:6379/0/<project-name> MNO_DEVPL_HOST: https://dev-platform.maestrano.com MNO_DEVPL_API_PATH: /api/config/v1/marketplaces MNO_DEVPL_ENV_KEY: MNO_DEVPL_ENV_SECRET: |
These can be set to anything. Just be sure to set them as they are required for the connector to run.
Each specific connector may have some variations to the set-up process:
bc_client_id:
and bc_client_secret:
The bc_client_id and bc_client_secret should be set to the client_id and client_secret from your BigCommerce API account:
1. Sign up for an account at https://www.bigcommerce.com/ (You can just use a free trial account)
2. Once you have created your account, sign-in to your BigCommerce dashboard
3. From the dashboard you will need to go to: Advanced Settings → API Accounts
4. Create an API account. On creation, you will be provided with credentials for your new API account. These include your Client ID, Client Secret, and Access Token. (be sure to save these as they cannot be retrieved again later)
DEFAULT_APP_PROTOCOL:
and DEFAULT_APP_HOST:
The DEFAULT_APP_PROTOCOL and DEFAULT_APP_HOST should be set to the url for your ngrok forwarding address (e.g. DEFAULT_APP_PROTOCOL: https, DEFAULT_APP_HOST: 9fd9ca8e.ngrok.io)