Skip to main content

Setup Repositories

Follow these steps to set up the necessary repositories on your local machine:

Clone Repositories

Clone the following repositories:

  1. Swirl
  2. cloud-integrations

Create New Branches

Create new branches from the master branch in both repositories using the following command:

git checkout -b <branch-name>

Configure Access

  • Log in to boltic and select an organization, e.g., fynd-sandbox.
  • Open developer tools in your browser and navigate to the network tab. Copy the token value from service/web/token/:id/:uid as shown in the screenshot below:

Token Screenshot

Set Token in Swirl

  • Open the src/index.tsx file in the Swirl repository and replace the TOKEN value with the token value you copied.

Configure cloud-integrations

  • Install packages using the below command
rm -rf node_modules/ package-lock.json && npm install --verbose
  • Start the server in the cloud-integrations repository:
node server.js

For Localtunnel:

lt --port 3156

For ngrok:

ngrok http 3156

Run Swirl

  • Append /cloud-integrations to this URL and update the index.tsx file in the Swirl repository to include this new URL as cloudintegration="https://petie-flies-matter.loca.lt/cloud-integrations".

Swirl config Screenshot

  • Open package.json file in swirl, and connect cloud-integrations repository locally as shown below

Swirl package.json file Screenshot

  • Install packages using the below command
rm -rf node_modules/ package-lock.json && npm install --verbose

Run Swirl using the below command:

./run.local.sh