This is a simple example of the @skip-go/client
in a Next.js app. This is a good template or reference for a quick start integration.
First, install the dependencies:
npm install
An API key is recommended but not required to run this example. Learn more how to request API keys.
To add you API key populate the .env
file with the following variables:
SKIP_API_KEY=your-api-key
Finally, run the development server:
npm run dev
Open http://localhost:3000 with your browser to see the result.
To keep your API key secure and private, we recommend that you proxy the API requests from the frontend to your own backend—where you can add your API key in the header before forwarding the request to the Skip Go API.
A guide to do so can be found here.
To learn more about Skip, take a look at the following resources: