Storefront · Page Builder · Components · Storefront SDK · Backoffice SDK · Vendor SDK · Community SDK · Core · CLI · Translate
Caution
This repository is archived and deprecated. It is no longer maintained and will not receive updates or security fixes. To build storefront layouts on Selldone, use the official project: github.com/selldone/storefront.
Vue Bundle (@selldone/vue-bundle) was a ready-to-use Vue 2 project that helped developers create apps for merchants on the Selldone® store builder and e-commerce platform. It was built with Vue CLI 4, TypeScript, Vuetify 2, Vue Router and Vuex, and included a small API layer (ShopApi, UserApi) and an OAuth-style flow that read the app API key and shop ID from the URL and the redirect URL and scopes from <meta> tags.
The Selldone open-source ecosystem has since moved to Vue 3 and dedicated packages that replace every part of this bundle.
| If you used… | Use this instead |
|---|---|
| The Vue 2 project scaffold (Vue CLI, Vuetify 2, router, store) | Storefront — production-ready Vue 3 + Vite storefront (a Selldone Layout). |
window.Selldone, ShopApi / UserApi and the axios setup for customer-facing calls |
Storefront SDK — @selldone/sdk-storefront, available as window.$storefront. |
| Building your own UI widgets for shop pages | Components — @selldone/components-vue, pre-built Vue 3 commerce components. |
yarn build and manual upload |
Selldone CLI — selldone-cli, build, zip and deploy a Layout to Selldone. |
For admin or merchant-side integrations (the "Shop Owner API" mentioned below), see the Backoffice SDK.
Original setup instructions (historical reference)
These instructions are kept for reference only. The toolchain (Vue CLI 4, Node 10, Vue 2) is outdated.
- Selldone Shop Owner API Playground — Selldone's API.
- Selldone Shop Customer API Playground — Selldone's XAPI Customer APIs.
- Development documentation and Selldone Apps.
# Installation
yarn install
# Compiles and hot-reloads for development
yarn serve
# Compiles and minifies for production
yarn buildGuide to run full feature Selldone applications on your local machine.
# Local app url
http://localhost:8000?api={api_key}&shop_id={shop_id}You can simulate the app loading procedure by adding shop_id and api to your local app's URL query.
- api_key — Your application API key. Find it in Shuttle > Company > App > API Key.
- shop_id — Merchant shop ID. Find it in your admin store URL:
https://selldone.com/shuttle/shop/1→1.
You must set the redirect URL and scope with meta tags in your application page's header.
| Meta | Description | Required |
|---|---|---|
app-redirect-url |
Client app redirect URL | ✔ |
app-scope |
Access scopes | ✔ |
app-access-token |
Customer access token | ❌ |
<!-- Page header (index.html) -->
<meta name="app-redirect-url" content="APP REDIRECT URL Ex. localhost:8000 or your-domain.com/sample-app">
<meta name="app-scope" content="ACCESS SCOPES HERE Ex. profile shop-products shop-warehouse shop-process-center">The access token is saved in page sessions (sessionStorage). sessionStorage is similar to localStorage; the difference is that data in localStorage doesn't expire, while data in sessionStorage is cleared when the page session ends. You can save the access token in your secure database (your server) and provide it in the app-access-token meta tag.
<!-- Page header (index.html) -->
<meta name="app-access-token" content="ACCESS TOKEN HERE">This project is no longer maintained. Do not use it in new projects. To report a security issue in any active Selldone project, follow the security policy and email security@selldone.com.
MIT License — Copyright (c) 2020 Selldone. See LICENSE.
Part of the Selldone® Business OS open-source ecosystem · selldone.com

