acoustic-content-samples / sample-html-snippet

A sample content type that can take html, css, and js input to render a component in an Acoustic Content SPA
Apache License 2.0
0 stars 0 forks source link

Existing Oslo and HTML snippet #1

Open ghost opened 6 years ago

ghost commented 6 years ago

For an existing Oslo tenant, it's not clear what the process is to include the sample html snippet. Is the suggestion to:

Clone the wch-site-application and the sample-html-snippet into a single directory, build and deploy over the existing Oslo application that comes with Standard?

daherbst commented 6 years ago

Hey @scrumpmeister The process for installing the sample is:

  1. Open the root folder of the cloned wch-site-application repository in a command terminal.
  2. Run wchtools init to make sure that the tooling is configured with the correct details.
  3. Run npm run install-layouts-from-git https://github.com/ibm-wch/sample-html-snippet.git and follow the prompts. This will deploy the new html-snippet content artifacts to your tenant and import the source code into your wch-site-application project.
  4. Run npm run build to rebuild the SPA with the updated code.
  5. Run npm run deploy to deploy the updated code to your tenant.

After these steps are completed, the html-snippet will be ready to be used throughout the site. Please let me know how these instructions can be better communicated in the readme.