Vue Storefront Layer0 Example

Overview

Vue Storefront Layer0 Example

This Vue Storefront app uses CommerceTools and is configured to deploy on Layer0.

Demo

https://layer0-docs-layer0-vue-storefront-commercetools-example-default.layer0.link/

Try It Now

Deploy with Layer0

Getting Started

Clone This Repo

Use git clone https://github.com/layer0-docs/layer0-vue-storefront-commercetools-example.git to get the files within this repository onto your local machine.

Install dependencies

On the command line, in the project root directory, run the following command:

yarn install

Update CommerceTools credentials

Run the Vue StoreFront app locally on Layer0

In middleware.config.js update the CommerceTools API settings to reflect your own values. The values currently in there are for a test store run by Layer0.

We recommend that you leverage a .env file to inject your values to the middleware.config.js. Create a .env file from the .env-example file.

To create a new API Client, log into your CommerceTools instance and go to Settings > Developer settings > Create new API Client. Enter a name for the API Client and select the "Mobile & Single-page PWA client" template. Make sure to also check the "View > Stores" option. Sometimes the templates change the auto-checked items, so double check your permissions match that of the current middleware file.

Run the Vue Storefront app with the command:

yarn run layer0:dev

Load the site: http://127.0.0.1:3000

Testing production build locally with Layer0

You can do a production build of your app and test it locally using:

layer0 build && layer0 run --production

Setting --production runs your app exactly as it will be uploaded to the Layer0 cloud using serverless-offline.

Deploying to Layer0

Deploying requires an account on Layer0. Sign up here for free. Once you have an account, you can deploy to Layer0 by running the following in the root folder of your project:

layer0 deploy

Automate deployments using a Github Action.

See deploying for more information.

You might also like...
An example of to get data from the API of Last.fm and show with Vue 3.
An example of to get data from the API of Last.fm and show with Vue 3.

Getting data An example to get your data from Last.fm. Work with VueJS, fetch and the API of Last.fm. Note See the preview of this project here → You

A simple webserver to upload files over wifi, for example from a phone
A simple webserver to upload files over wifi, for example from a phone

What is this A simple webserver to upload files over wifi, for example from a phone. You can also transfer big files like 5 Gb.

Example of quasar admin
Example of quasar admin

Some examples how powerful Quasar / Vuejs is for SPA projects. Links Vuejs Page Quasar Framework Page Demo (Android or IOS Style) Infos Using Quasar d

A tiny, incomplete example for a paywalled content site built in Nuxt 3 for a live-coding session

Nuxt 3 + Medium (n3dium) This is a tiny, incomplete example for a paywalled content site built in Nuxt 3 for a live-coding session at Vue.js Global Su

The Coach Finder App is an Web App which should help us find a coach that, for example, helps us become better in web development, whatever.
The Coach Finder App is an Web App which should help us find a coach that, for example, helps us become better in web development, whatever.

The Coach Finder App is an Web App which should help us find a coach that, for example, helps us become better in web development, whatever.

An example of getting data from the dev.to API to display its own articles.
An example of getting data from the dev.to API to display its own articles.

Getting data from the API of DEV.TO An example of getting data from the dev.to API to display its own articles. Work with VueJS, fetch and the API of

Example projects for the Cypress vs. Playwright rematch. LET THE CODE SPEAK!
Example projects for the Cypress vs. Playwright rematch. LET THE CODE SPEAK!

Cypress vs. Playwright: The Rematch This repository holds the code for the Applitools webinar, Cypress vs. Playwright: The Rematch! The battle DING DI

A basic setup for Vue.js project . vuex, vuex-persistedstate, vue-router , vue-resource , sweetalert2.

Project setup npm install Compiles and hot-reloads for development npm run serve Compiles and minifies for production npm run build Lints and fixes

Vue-techno-courses - A simple SPA project using vue and vue-vouter

vue-techno-courses A simple SPA project using vue and vue-vouter. Project setup

Owner
Andrew B.
Ask me about anything
Andrew B.
Vue Storefront 2 integration with PrestaShop

Convert your traditional PrestaShop website into a fast, mobile friendly and modern website.

Vue Storefront - Community 38 Dec 5, 2022
Paypal payment module for Vue Storefront

This is the PayPal Payment module for Vue Storefront PayPal Payment Magento 1 & 2 module for vue-storefront Tested with VSF 1.12.x This module is for

Develo 46 Mar 19, 2022
Stripe payment module for Vue Storefront

Stripe Payment module for Vue Storefront Stripe Payment extension for vue-storefront, by Develo Design. Installation By hand (preferred): git clone ht

Develo 26 Nov 28, 2022
An exemplary real-world application built with Vue.js, Vuex, axios and different other technologies. This is a good example to discover Vue for beginners.

Vue.js codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the RealWorld spec and API. Project demo is availa

Thinkster 4k Dec 28, 2022
Vue js Axios example - Get/Post/Put/Delete request with Rest API - JSON data

Vue Axios example with Rest API Vue Client with Axios to make CRUD requests to Rest API in that: Vue Axios GET request: get all Tutorials, get Tutoria

null 8 Aug 30, 2022
Example of SPA made with Vue 3 and Bootstrap 5 to create a portfolio from public repos

Lista de Repos en Github Este ejemplo utiliza la API de Github para obtener la i

adrian.larage 0 Dec 22, 2021
Fipugram-ci - Cicd fipugram example with vue.js

vue create instaclone Manually -- Babel -- Router -- CSS preprocessor -- no lint

Jakov Sosic 0 Jan 14, 2022
An example of a store written on Vue

Tools and technologies in the project HTML5 and CSS3: Semantic Elements, Flexbox JavaScript: ES6+ Node & Express: Web API, CryptoJS, JWT MongoDB: Mong

Nastya Borisova 1 Mar 18, 2022
Acme Store - Ecommerce Example (Vue.js, VueX, Sass)

Criado para o desafio técnico da Hype Empreendimentos. Desenvolvido com Vue.js, VueX, Sass e a lib de ícones Iconify/vue. Instalada como dependência de desenvolvimento.

Thiago Silva Lopes 1 Jul 11, 2022
Example CRUD with Laravel 9 + Vue 3 + Vite + Pinia

About Laravel Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experie

Juan Sánchez 2 Jul 27, 2022