NewComposable Commerce Trends 2024: Executive Report – the latest industry insights!
DOWNLOADarrow-right
vsf_logo.svg
github-star-nav-top.svg
Build Frontend Integrations with Framework-Agnostic SDK Boilerplate

Explore by Category:

Product

Build Frontend Integrations with Framework-Agnostic SDK Boilerplate

Vector-2.png

Vue Storefront

June 14, 2023

We're thrilled to announce the release of our SDK Based Integration Boilerplate for Vue Storefront. Emphasizing agility and flexibility, this boilerplate stands as an optimal starting point for creating your frontend integration.

This new architecture empowers you to construct an integration for your headless backend that is not bound to any specific framework. This SDK can then be utilized across any frontend framework. Thus, if you have clients who are confined to a particular framework, you can conveniently adapt to their needs and preferences.

Vue Storefront is renowned for its capacity to provide the critical building blocks for integrations. Now, with the introduction of our SDK Based Integration Boilerplate, we've made it even easier for frontend integrators to quickly lay the groundwork for their projects, enhancing efficiency and adaptability across the board.

sdk-di-2.png

How to get started

To kickstart your project, simply make use of our intuitive Command Line Interface (CLI) to generate a new integration boilerplate. Just execute the following command:

1 npx @vue-storefront/cli create integration

The CLI will guide you through a series of tailored questions, crafting a customized integration boilerplate that caters to your specific needs and requirements. The create integration command even creates a playground in either Nuxt or Next so you can see your integration working in a live application from the start.

For a more detailed walkthrough on creating custom integrations using the VSF SDK, we recommend visiting our comprehensive SDK documentation .

After your boilerplate is established, you can rapidly launch the development server and middleware server from your project root. Depending on your preferred package manager, choose one of the following commands:

cd into your project

run the build command (you can also use npm)

1 yarn build

1 yarn dev

These commands will:

  1. Start the development server for the playground/app application.

  2. Start the middleware server for the playground/middleware application.

Adding new endpoints to your project is also streamlined with our CLI. Simply run:

1 npx @vue-storefront/cli add endpoint getSomething

This command will:

  1. Add a new endpoint to the api-client package.

  2. Add a new method to the sdk package.

  3. Add a new route to the playground/middleware application.

  4. Add a new route to the playground/app application.

Make sure you run yarn build after adding to or changing endpoints.

Our SDK Based Integration Boilerplate for Vue Storefront is your fastest route to launching successful integrations. It's designed to save you time and effort, enabling you to focus on crafting unique and engaging features for your project.

If you’d like to see the code behind the boilerplate you can check out the repository here.

Share:

Share:

Ready to dive in? Schedule a demo

Get a live, personalised demo with one of our awesome product specialists.