Setup Repositories
Follow these steps to set up the necessary repositories on your local machine:
Clone Repositories
Clone the following repositories:
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:
Set Token in Swirl
- Open the
src/index.tsx
file in the Swirl repository and replace theTOKEN
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
- Use ngrok or localtunnel to forward port 3156. For example, it might return a URL like https://petie-flies-matter.loca.lt
For Localtunnel:
lt --port 3156
For ngrok:
ngrok http 3156
Run Swirl
- Append
/cloud-integrations
to this URL and update theindex.tsx
file in the Swirl repository to include this new URL ascloudintegration="https://petie-flies-matter.loca.lt/cloud-integrations"
.
- Open package.json file in swirl, and connect cloud-integrations repository locally as shown below
- 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