spark-solutions / spree2vuestorefront

Build complete E-Commerce PWA with this Spree Commerce (https://github.com/spree/spree) to Vue Storefront (https://github.com/DivanteLtd/vue-storefront) bridge
50 stars 9 forks source link

What should I put in 'platform' when connecting to storefront_api? #103

Open shunnokw opened 3 years ago

shunnokw commented 3 years ago

I already setup spree2vuestorefront and have a single end point at port 8889 I also setup my elastic search instance and imported everything What platform should I use at local.config file? And what should I put in index.js?

 let modules = [
    DefaultVuestorefrontApiModule({
        platform: {
            name: 'magento2',
            platformImplementation: magento2
        }
    }),
    DefaultCatalogModule(),
    DefaultImgModule(),
]

Also, where should I put the endpoint url in?

Thank you