To clone the repository to your personal computer, run the following command.
$ git clone <https://github.com/ibuildgenius/buy-insurance.git>
$ cd buy-insurance
npm install
pnpm install --shamefully-hoist
yarn install
bun install
YOUR_API_KEY with the public API key from your distributor dashboard.const config = {
...
pk: 'YOUR_API_KEY', // ENTER YOUR PUBLIC API KEY
...
};


Run the following command to start the project in the browser on http://localhost:5173/buy-insurance/
npm run dev
pnpm run dev
yarn dev
bun run dev
With everything setup correctly, on launching your browser on localhost:5173, you should be greeted with a simple user interface. Click the "Buy Insurance" button to open up the MyCover.ai SDK widget.

Once you click the button, the SDK is initialised and displays a list of actions to take, including purchasing a product.

Distributor
In Mycover.ai context, Distributors are businesses that want to sell insurance directly through the MyCover.ai platform.
Environments
When working with MyCover.ai’s tools, you'll find that you’re provided two different environments. These environments are set up to give you the flexibility you need while also keeping your work secure as you build your product. Depending on where you are in the development process, you can switch between test and live environments.