GithubHelp home page GithubHelp logo

isabella232 / vsf-academy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vuestorefront/vsf-academy

0.0 0.0 0.0 2.23 MB

Vue 66.06% TypeScript 0.97% JavaScript 17.65% Shell 0.28% EJS 15.03%

vsf-academy's Introduction

Vue Storefront Enterprise Theme

Generate new project for commercetools

  • check the config for all dependencies
  • setup preferred cms credentials in .env file

Run command:

npm run generate
## or with yarn
yarn generate

You will be asked few questions about services you want to setup your commercetools project with:

  • CMS
  • Payment
  • Search

Also here you can decide if generated project should be based on Click&Collect theme. Script will take regular Enterprise Theme setup and add everything that is located inside click-and-collect directory. In this case, default UI Theme is replaced with Click&Collect theme.

This will generate the full project in the generated-{name} folder.

Start Commercetools App

cd generated-{name}/
npm install # install dependencies
npm install --no-optional # or install without optional dependencies
npm run dev # run app in dev mode

or with yarn

cd generated-{name}/
yarn install # install dependencies
yarn install --ignore-optional # or install without optional dependencies
yarn dev # run app in dev mode

Creating a new theme

If you would like to create a new custom theme based on Enterprise Theme (Commercetools, CMS, payments, etc) you can do so by following below steps:

  1. Add object with custom theme to the config
// xx-config.js
  ...
    from: [
      ...
      {
        path: './themes/xx',
        ignore: [],
        variables: {},
        watch: false
      }
    ]
  1. Inside ./themes/xx create your components/pages/layouts/etc as you would do with normal Nuxt.js application. They will overwrite default VSF Nuxt Theme and Enterprise Theme.

  2. Add new options to the CLI, so generating app basing on your new theme will be as easy as it gets :)

CMS CLI

In CMS related ENV provide content management credentials (XYZ_MANAGEMNT_TOKEN)

Run command:

npm run generate:cms
## or with yarn
yarn generate:cms

Here you will be asked a question, wheter you want to:

  • update the schema in the repo
  • setup a cms enviroment

This might take a while. Along with this action, proper CMS SKD will create space and components schemas for further usage. Remember to provide and generate the spacial content management token in the CMS panel (tip: it's not the same one as content delivery token).

vsf-academy's People

Contributors

marcinsulowski avatar razz21 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.