- Notifications
You must be signed in to change notification settings - Fork52
Vue Storefront 2 integration for Vendure
License
vuestorefront-community/vendure
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This project is a Vendure integration forVue Storefront 2.
yarn global add @vue-storefront/cli
vsf init<project_name>
ChooseVendure
or useCustom template from Github
option and type:https://github.com/vuestorefront/template-vendure.git
.
cd<project_name>
yarn
yarn dev
Want to contribute? Ping us onvendure
channel onour Discord!
- NodeJS v14 or later
- Vendure server running in localhost for GraphQL API orhttps://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 methodrequireVerification: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.gitcd vendure
Run
yarn
to install dependenciesAdd your Vendure server GraphQL API uri to env file in
packages/api-client
andpackages/theme
cd packages/themecp .env.example .env
// packages/theme/.env.exampleGRAPHQL_API=http://localhost:3000/shop-apiTOKEN_METHOD=bearer
These environment variables will be then used in:
// packages/theme/middleware.config.jsmodule.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 inpackage.json
Your project will be running onhttp://localhost:3001
(As Vendure server is running on port3000
)
If you have any questions about this integration we will be happy to answer them onvendure
channel onour Discord.
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 💻 | michael.douglas@outlook.com 💻 | Justyna 💻 |
This project follows theall-contributors specification. Contributions of any kind welcome!
About
Vue Storefront 2 integration for Vendure