Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Layer0 Workshop Due to Non-Functioning Services #667

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions docs/partner-integrations/assets/Layer0.svg

This file was deleted.

1 change: 0 additions & 1 deletion docs/partner-integrations/partner-integrations.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ AWS Partner | Workshops Overview | Workshop Links | Level | Duration
![mParticle logo](./assets/mparticle.svg) | [mParticle](https://mparticle.com/) is a Customer Data Platform that allows any brand to ingest data from multiple sources in real-time, apply data quality and governance over the ingested data and orchestrate the data to any marketing and technology stack your organization is using. In this workshop, you will configure real-time event flows to Amazon Personalize using the mParticle SDKs and then use that data to create customer profiles that can be used in marketing campaigns to customers via Braze. | [Real Time Personalization Events](https://github.com/aws-samples/retail-demo-store/blob/master/workshop/1-Personalization/Lab-6-Real-time-events-mParticle.ipynb) <br/><br/> [Personalized Customer Profiles and Messaging with any marketing tool (Braze) and mParticle](https://github.com/aws-samples/retail-demo-store/blob/master/workshop/6-CustomerDataPlatforms/6.2-mParticle.ipynb) | 300 | 1-1.5 hours
![Optimizely logo](./assets/optimizely.svg) | In this exercise we will define, launch, and evaluate the results of an A/B experiment of a personalized user experience using [Optimizely](https://www.optimizely.com/). | [AB Experiments for Personalization](https://github.com/aws-samples/retail-demo-store/blob/master/workshop/3-Experimentation/3.6-Optimizely-AB-Experiment.ipynb) | 200 | 30 minutes
![Segment logo](./assets/segment.svg) | [Segment](https://segment.com/) is a real-time events pipeline for customer data, as well as a customer data platform. In the Retail Demo Store, Segment is used to deliver real-time events from the web user interface to Amazon Personalize. These real-time events are also used to create customer profile with Amazon Personalize recommendations appended, which can then be used via the CDP to push data to marketing tools. | [Real Time Personalization Events](https://github.com/aws-samples/retail-demo-store/blob/master/workshop/1-Personalization/Lab-5-Real-time-events-Segment.ipynb) <br/><br/> [Customer Data Platforms and Personalize](https://github.com/aws-samples/retail-demo-store/blob/master/workshop/6-CustomerDataPlatforms/6.1-Segment.ipynb) | 300 | 1-1.5 hours
![Layer0 logo](./assets/Layer0.svg) | :warning: **This demo is currently going through some fixes and is likely to not work** :warning: [Layer0](https://layer0.co/) extends the capabilities of a traditional CDN by not only hosting your static content, but also providing server-side rendering for progressive web applications. Layer0 allows caching both your APIs and HTML at the network edge to provide your users with the fastest browsing experience. Teams can ship faster leveraging an enhanced developer experience to deploy code faster and with more frequency, view their code quickly in atomically deployed environments, and integrating their CDN configuration to the overall build process. Layer0 provides the tools needed to build the modern apps capable of providing the performance expected by modern consumers. | [Edge Optimization](https://github.com/aws-samples/retail-demo-store/blob/master/workshop/8-PerformanceOptimization/8.1-Layer0.ipynb) | 200 | 1 hour
7 changes: 1 addition & 6 deletions src/web-ui/.env.template
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,8 @@ VITE_SEGMENT_WRITE_KEY=NONE
# Set to NONE to disable Google Analytics integration, otherwise set to Measurement ID.
VITE_GOOGLE_ANALYTICS_ID=NONE

# Configure Layer0
# 'VITE_' prefix part MUST NOT be used here to prevent token disclosure in client side JS
VITE_LAYER0_ENABLED=false
AWS_IMAGE_SERVICE_DOMAIN=

# Configure Product personlization feature in web-ui
BEDROCK_PRODUCT_PERSONALIZATION=FALSE

# Configure s3 bucket name for room image uploads
VITE_ROOM_IMAGES_BUCKET=
VITE_ROOM_IMAGES_BUCKET=
4 changes: 0 additions & 4 deletions src/web-ui/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,3 @@ yarn-error.log*
*.njsproj
*.sln
*.sw*

# Layer0
.layer0/
dist-layer0/
3 changes: 0 additions & 3 deletions src/web-ui/gen_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ printf 'VITE_GOOGLE_ANALYTICS_ID=%s\n' "$GOOGLE_ANALYTICS_ID" >> .env
printf 'VITE_MPARTICLE_API_KEY=%s\n' "$MPARTICLE_API_KEY" >> .env
printf 'VITE_MPARTICLE_SECRET_KEY=%s\n' "$MPARTICLE_SECRET_KEY" >> .env

# Layer0
printf 'VITE_LAYER0_ENABLED=false\n' >> .env

# Fenix Settings variables
printf 'VITE_FENIX_TENANT_ID=%s\n' "$FENIX_TENANT_ID" >> .env
printf 'VITE_FENIX_ZIP_DETECT_URL=%s\n' "$FENIX_ZIP_DETECT_URL" >> .env
Expand Down
2 changes: 0 additions & 2 deletions src/web-ui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
<link rel="stylesheet" href="/css/bootstrap-4.3.1.min.css">
<link rel="stylesheet" href="/css/fontawesome-5.15.4.all.min.css">
<title>Retail Demo Store</title>
<!-- Layer0 -->
<%= VITE_LAYER0_ENABLED === 'true' ? `<script src="/__layer0__/cache-manifest.js" defer="defer"></script><script src="/main.js" defer="defer"></script><script src="/service-worker.js" defer="defer"></script>`: '' %>
<!-- This code is for the Segment integration - DO NOT REMOVE -->
<%= VITE_SEGMENT_WRITE_KEY === 'NONE' ? '' : `<script>\r\n !function(){var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error(\"Segment snippet included twice.\");else{analytics.invoked=!0;analytics.methods=[\"trackSubmit\",\"trackClick\",\"trackLink\",\"trackForm\",\"pageview\",\"identify\",\"reset\",\"group\",\"track\",\"ready\",\"alias\",\"debug\",\"page\",\"once\",\"off\",\"on\",\"addSourceMiddleware\",\"addIntegrationMiddleware\",\"setAnonymousId\",\"addDestinationMiddleware\"];analytics.factory=function(e){return function(){var t=Array.prototype.slice.call(arguments);t.unshift(e);analytics.push(t);return analytics}};for(var e=0;e<analytics.methods.length;e++){var key=analytics.methods[e];analytics[key]=analytics.factory(key)}analytics.load=function(key,e){var t=document.createElement(\"script\");t.type=\"text\/javascript\";t.async=!0;t.src=\"https:\/\/cdn.segment.com\/analytics.js\/v1\/\" + key + \"\/analytics.min.js\";var n=document.getElementsByTagName(\"script\")[0];n.parentNode.insertBefore(t,n);analytics._loadOptions=e};analytics.SNIPPET_VERSION=\"4.13.1\";\r\n analytics.load(\"${VITE_SEGMENT_WRITE_KEY}\");\r\n analytics.page();\r\n }}();\r\n<\/script>` %>
</head>
Expand Down
113 changes: 0 additions & 113 deletions src/web-ui/layer0.config.js

This file was deleted.

15 changes: 0 additions & 15 deletions src/web-ui/layer0/browser.js

This file was deleted.

38 changes: 0 additions & 38 deletions src/web-ui/layer0/cache.js

This file was deleted.

Loading