Is there any way to download commerce cloud to use locally? Software center shows No data and we can't download anything.
Also, can we use a public commerce cloud instance to build a storefront? In the case where we can't download cloud commerce but we want to build a storefront.
You can follow these easy steps below to quickly get up and running with a new spartacus app using the public commerce cloud instance.
ng new mystore --style=scss
cd mystore
ng add #spartacus/schematics --baseUrl https://spartacustraining.eastus.cloudapp.azure.com:8443 –occPrefix /occ/v2/ --baseSite electronics-spa --pwa --ssr
yarn start
open http://localhost:4200
Related
There are critical security issues in Shopware 6 pre 6.4.18.1.
We manage our shops via Composer and due to incompatible 3rd party plugins cannot upgrade to 6.4.18.1 quickly.
Now there is https://store.shopware.com/swag136939272659f/shopware-6-sicherheits-plugin.html?number=Swag136939272659
What is a recommended way to install / upgrade this plugin.
We have the following options:
Activate Shopware store and install the plugin using the store (after login on the Shopware account, which can cause complications with staging URLs)
Download the plugin ZIP manually, for example from a Wildcard account and upload it manually
Install via composer, run through a full deploy process but don't update Shopware just yet but just the Security plugin.
How are others handling the Security plugin upgrades? Is there an officially recommended way?
I prefer handling all Store plugins via composer, so in your case requiring store.shopware.com/swagplatformsecurity and deploying that (along with a plugin:install or plugin:update).
As you mentioned, using the included Store breaks down in deployed/version-controlled environments.
You could also extract the ZIP into custom/plugins and deploy that, but then this would be an exception of your otherwise composer-managed project.
I have made changes to my (already published) Google Sheets Add-On (in the Script Editor).
I have created a new version and pressed "Publish > Deploy as Add-On" which says
You must configure the G Suite Marketplace SDK to publish an add-on.
When I click on the link G Suite Marketplace opens (and I see the currently published products catalog entry) but no way of specifying a new version.
.
When I click OK nothing happens.
The entire Google Sheets add-on deployment workflow is one hot mess. Do not use Publish -> Deploy as Sheets add-on... to update an already-deployed AppScript. It does not work.
Instead, first create a version of the script File -> Manage version. Then go to the G Suite Marketplace SDK page in the Google Cloud Platform console (console.cloud.google.com). Under the Configuration tab, scroll down to find Editor Add-on extensions where Sheets add-on extension should already be checked (if you followed the publication directions earlier and have already successfully published the add-on).
There you will see a field for the script version number. Increment it to the latest version, and Save changes. As far as I can tell this takes effect immediately.
Answer:
Google is currently migrating add-ons from the Chrome Web Store to the G Suite Marketplace, so now need to be published there rather than the legacy marketplace.
Further Information:
In order to publish an Apps Script project as an addon, as specified in your message, the G Suite Marketplace SDK must be configured. You can find an article detailing the migration process here.
You will need to enable the G Suite Marketplace SDK in your Google Cloud Platform (GCP) project. You can follow the information on the Getting Started page for Google Cloud.
References:
All add-ons now in the G Suite Marketplace
Publish to the G Suite Marketplace
Getting Started with Google Cloud
The new GSM publishing flow for Editor Add-ons as described https://developers.google.com/gsuite/add-ons/how-tos/editor-publish-overview is now available.
This means that all updates now needs to be done through GSM. Please make sure to complete all the fields in both the configuration and publish section of the marketplace SDK and click on the 'Publish' button.
Live Server is quite handy while developing and debugging. This feature is available in node packages
$ npm install browser-sync --save-dev
Then below command will provide the Local and External URL to get the live updates in our HTML page.
$ gulp watch
The External URL is used to access the live changes that is made to web pages through the device connected through WiFi. This feature helps in multiple device testing at the time of development. Currently the Live Server plugin in visual studio code,enable us to view changes only in the system where it is being developed (local).
Is there any plugin or setting changes in Live Server that enable External URL feature?
It doesn't look like the live-server npm package or the live server vs code extension currently have this functionality baked in.
However, you can make a local url publically available via ngrok
Run live-server:
npx live-server
Then, in a separate terminal, run ngrok:
npx ngrok http 8080
I cloned universal-starter (webpack version) and have it up and running on my local machine using npm start and npm run watch per the instructions
Now stuck after npm run build and attempting to deploy to Azure (and Google Cloud) via the github integration - can't figure out how to set up either to work.
Anyone have a recipe on how to get the webpack bundled files to fire up on an external host with express.js? Do I need to run commands via a CI integration? The files in /dist don't seem to stand on their own.
At Netlify you can connect your git repo and tell them what build commands you want them to use. If you specify the "dist" directory, then they will deploy anything that gets in there (after they have compiled your application).
Edit: the lowest tier is free.
Edit2: I am not associated with Netlify. I just used them in my latest deploy, and found the process extremely easy.
Note: This has changed dramatically since Angular 2. While I'm now moved on to SSR, docker, and all kinds of other things, the simplest answer was to
1) Production build
ng build --prod
2) Transfer files to a static web host (i.e., I used awscli to connect to a s3 bucket when it was just a static site...I know use SSR so I need to use a node server like express)
3) Serve files (there are some complexities for redirect requirements for index.html for error and for 404...and of course setting the status for both redirects to 200)
4) Put something on the frontend for performance/ ssl/ etc. nginx or a CDN would make sense.
I have an android application that needs google play services. Is there a option to put code inside my application to download and install google play services automatically if missing. I don't want users to download and install google play services separately and then install my application instead want to install both in a single go. Please let me know.
Thanks,
Rajeev
I think the correct way to do it is checking if the services are enable from within your app with isGooglePlayServicesAvailable(android.content.Context).
if (GooglePlayServicesUtil.isGooglePlayServicesAvailable(ctx) == ConnectionResult.SUCCESS) {
// do your stuff (play service is available)
}
if the test doesn't pass, this will automatically display a button to download google play services
Then, you could test on :
onResultActivity
if it were installed, and run your app
as mentioned in comment , This is not "automatically" and also is not possible for the Play Services Framework except via software piracy.
if ur application can run and only after that u need google play service functionality :
Just do these step:
1, Download file use Asynctask or Service. Solution here
2, Pass downloaded file to package installer.
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(new File(Environment.getExternalStorageDirectory() + "/download/" + "app.apk")), "application/vnd.android.package-archive");
startActivity(intent);
It's simple set path to downloaded file and mime type. More detail here. You can also look to the right. There is a list of related questions like yours
answer comes from "Jul" in this post :
How to download & install .apk file in Android application?