MyCover AI
Search
K

Quick Start

Discover how our platform empowers you to swiftly secure insurance coverage tailored to your needs, ensuring a seamless experience from start to finish. Say goodbye to lengthy processes and hello to instant protection with Mycover.ai. Learn how to use Mycover.ai to quickly purchase an insurance in no time.
  1. 1.
    Create a distributor account with MyCover.ai. It's a simple and straightforward process.
To learn more about Distributors, head over to the distributor section.
  1. 2.
    Get your unique Public Key from the dashboard:
Obtain Public API Key
  1. 3.
    Clone this repository to bootstrap a fresh project.
The project is created with Vite.js and requires Node.js to be installed on your machine and run successfully.
  1. 4.
    cd into the project folder.
cd buy-insurance
  1. 5.
    Install the dependencies in the buy-insurance folder:
npm
yarn
pnpm
npm install
yarn install
pnpm install --shamefully-hoist
  1. 6.
    In the mycoverai.js file, replace the YOUR_API_KEY with the public API key you got from your distributor dashboard on step 2.
mycoverai.js
const config = {
...
publicKey: 'YOUR_API_KEY', // ENTER YOUR PUBLIC API KEY
...
};
  1. 7.
    Run the dev command to start the project in development mode:
npm
yarn
pnpm
npm run dev
yarn dev
pnpm run dev
✨ Well done! A browser window should open for http://localhost:5173/buy-insurance/
  1. 8.
    Upon launching your browser on localhost:5173, you should be greeted with a simple user interface. Click on the "Buy Insurance" button to open up the Mycover.ai SDK widget.
Buy Insurance
  1. 9.
    The SDK is initialised and display a list of products you can purchase like so:
Product List