bigcommerce / b2b-buyer-portal

B2B Buyer Portal - BigCommerce B2B Edition
MIT License
25 stars 19 forks source link

Getting blank page in local env #14

Closed albertoalmansa-e2x closed 4 months ago

albertoalmansa-e2x commented 4 months ago

Hello,

I have checked out the code and tried to run it locally, but I am getting a blank page that just says "Loading...", after I click on "Login".

These are the screenshots:

Screenshot 2024-05-20 at 12 58 05 Screenshot 2024-05-20 at 12 58 14

In my env file I am pointing to the same client_id that is in the example env file.

Can you please advise?

Thanks.

bc-marco commented 4 months ago

Hello @albertoalmansa-e2x Currently we have identified 2 ways to access to buyer portal:

  1. By using you bigcommerce store url (https://store-{storeHash}-{channelId}.mybigcommerce.com) or cname url (mystore.com),
  2. By using stencil cli tool

Both will work after you configure the script tags on your store configuration

albertoalmansa-e2x commented 4 months ago

Hello @bc-marco ,

But I am trying to run it locally following the readme.

Thanks.

bc-marco commented 4 months ago

Hello @bc-marco ,

But I am trying to run it locally following the readme.

Thanks.

Yes, but in order to consume the bundled files, you should be using the store, not the local development direction on your browser

PS. Stencil CLI is not fully working yet, we're working on a fix for that

albertoalmansa-e2x commented 4 months ago

Thank you @bc-marco , that worked. I can now see it integrated with cornerstone and hit the buyer-portal that runs on my local env. I hadn't imagined it had to be through the deployed theme.

Kind regards, Alberto.