This project is a Vendure integration for Vue Storefront 2.
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
Want to contribute? Ping us on vendure
channel on our Discord!
// vendure-config.ts
...
authOptions: {
tokenMethod: 'bearer', // authorization header method
requireVerification: false, // disable register by email verification
},
https://www.vendure.io/docs/getting-started/
Fork the repo
Clone your fork of the repo
git clone https://github.com/vuestorefront/vendure.git
cd vendure
Run yarn
to install dependencies
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
},
}
}
}
};
Build dependencies yarn build
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
)
If you have any questions about this integration we will be happy to answer them on vendure
channel on our Discord.
Thanks go to these wonderful people ๐:
This project follows the all-contributors specification. Contributions of any kind welcome!