Quickstart
Last updated
Was this helpful?
Last updated
Was this helpful?
This guide is designed to help you easily integrate to our SDK as a distributor. By following this guide, you will set up the SDK for purchasing insurance.
Before getting started, and for access to our APIs.
Ensure is installed on your computer because the project is built with .
1. Clone the to bootstrap a fresh project:
To clone the repository to your personal computer, run the following command.
2. Navigate into the project’s directory with the command:
3. Install the project’s dependencies using the commands:
4. In the mycoverai.js
file, replace the YOUR_API_KEY
with the public API key from your distributor dashboard.
5. Start the project locally in development mode.
Once you click the button, the SDK is initialised and displays a list of products so you can test purchase.
Run the following command to start the project in the browser on
✨ Well done! A browser window should open for
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 SDK widget.