Code Monkey home page Code Monkey logo

vendure-storefront's Introduction

Vue Storefront 2 integration with Vendure

This project is a Vendure integration for Vue Storefront 2.

How to start if you want to try out the integration

yarn global add @vue-storefront/cli
vsf init <project_name>

Choose Vendure or use Custom template from Github option and type: https://github.com/vuestorefront/template-vendure.git.

cd <project_name> 
yarn
yarn dev

How to start if you want to contribute?

Want to contribute? Ping us on vendure channel on our Discord!

Requirements

  • NodeJS v14 or later
  • Vendure server running in localhost for GraphQL API or https://demo.vendure.io/shop-api
  • Set up auth options in Vendure server (This functionality is available for those who scaffold a local instance of Vendure)
// vendure-config.ts
...
  authOptions: {
    tokenMethod: 'bearer', // authorization header method
    requireVerification: false, // disable register by email verification
  },

Setting up Vendure Server

https://www.vendure.io/docs/getting-started/

Steps

  1. Fork the repo

  2. Clone your fork of the repo

    git clone https://github.com/vuestorefront/vendure.git
    cd vendure
  3. Run yarn to install dependencies

  4. Add your Vendure server GraphQL API uri to env file in packages/api-client and packages/theme

    cd packages/theme
    cp .env.example .env
    // packages/theme/.env.example
    
    GRAPHQL_API=http://localhost:3000/shop-api
    TOKEN_METHOD=bearer

    These environment variables will be then used in:

    // packages/theme/middleware.config.js
    
    module.exports = {
      integrations: {
        vendure: {
          location: '@vue-storefront/vendure-api/server',
          configuration: {
            api: {
              uri: process.env.GRAPHQL_API,
              tokenMethod: process.env.TOKEN_METHOD
            },
          }
        }
      }
    };
  5. Build dependencies yarn build

  6. Run yarn dev to run theme. You can find other commands in package.json

Your project will be running on http://localhost:3001 (As Vendure server is running on port 3000)

Resources

Support

If you have any questions about this integration we will be happy to answer them on vendure channel on our Discord.

Contributors ✨

Thanks go to these wonderful people πŸ™Œ:


Jakub Andrzejewski

πŸ’» 🚧 πŸ“† πŸ“–

Rafael Garcia Lepper

πŸ’»

Michael Bromley

πŸ‘€

Filip JΔ™drasik

πŸ‘€

Mateusz PietrusiΕ„ski

πŸ‘€

igorwojciechowski

⚠️

Heitor Ramon Ribeiro

πŸ§‘β€πŸ«

Milan Zivkovic

πŸ’»

[email protected]

πŸ’»

Justyna

πŸ’»

This project follows the all-contributors specification. Contributions of any kind welcome!

vendure-storefront's People

Contributors

adampawlinski avatar alphonsegit avatar baroshem avatar bloodf avatar filrak avatar julienteam avatar justyna-13 avatar michaelrabelo avatar rglepper avatar vladovsiienko avatar zmilan 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.