A
Alokai2mo ago
plooff

How to use a newly created Custom Integration

Hi experts, I've just created a custom integration using this documentation https://docs.alokai.com/integrations/custom/quick-start and I'm wondering how I can use this custom integration into an existing Alokai project ? I think I understood that the documentation referes to this github repo https://github.com/vuestorefront/integration-boilerplate but I'm kind of stuck now. I have already some integrations configured into apps/storefront-middleware/integrations and I guess I need to do something there and also in the apps/storefront-middleware/middleware.config.ts but the documentation does not explain how go further once the custom integration is created. Can you please explain what's the next step once the custom integration app is created ? Kind regards
Alokai
Creating a Custom Integration
If you're looking to create a custom integration for Alokai, you're in the right place. This guide will walk you through the process of creating a custom integration from scratch.
GitHub
GitHub - vuestorefront/integration-boilerplate: Framework Independe...
Framework Independent boilerplate containing SDK and API Client starters. - vuestorefront/integration-boilerplate
5 Replies
Rinnelis
Rinnelis5w ago
Kind of similar issue. Currently CLI 5.0.0 is not working
@vue-storefront/cli: Class extends value undefined is not a constructor or null
@vue-storefront/cli: Class extends value undefined is not a constructor or null
Mateusz Ostafil
Hi @plooff , Yes, you need to add that new integration to the middlware. To do so you need to add a configuration which in location points to your integration's index.server.ts file. Check out this doc for more info: https://docs.alokai.com/middleware/guides/getting-started#adding-integrations
Alokai
Installation
If you're building your Alokai application from scratch, you'll need to set up the middleware to connect to your backend services.
Mateusz Ostafil
@Rinnelis What command did you run?
Rinnelis
Rinnelis4w ago
npx @vue-storefront/cli create integration
npx @vue-storefront/cli create integration
from help seems like create is not included anymore and update is throwing errors as above
Mateusz Ostafil
@Rinnelis it is included. Can you tell me which node version you have? node -v
Want results from more Discord servers?
Add your server