Skip to content

Training Demo #1

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

Open
wants to merge 39 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 27 commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
d3ec7ca
chore(medusa): update dependencies to version 2.6.0 and refactor seed…
jaruesink Mar 14, 2025
e7bf250
feat(storefront): update UI components and content for 360 Training p…
jaruesink Mar 14, 2025
67b1a4b
feat: add deploy script
dwene Mar 14, 2025
c70ede1
test
dwene Mar 14, 2025
8a3885b
fix: seed script
dwene Mar 14, 2025
5a6ae1f
feat(storefront): enhance Gameplan and UI components for 360 Training…
jaruesink Mar 14, 2025
69a8cc3
Merge branch 'training-demo' of github.com:lambda-curry/training-demo…
jaruesink Mar 14, 2025
1ed594d
feat: perf enhancements
dwene Mar 14, 2025
4856d12
Merge branch 'main' into training-demo
dwene Mar 14, 2025
a628ce2
feat(storefront): enhance product option selectors with price formatt…
jaruesink Mar 14, 2025
b813895
Merge branch 'training-demo' of github.com:lambda-curry/training-demo…
jaruesink Mar 14, 2025
607c645
feat(storefront): update product option selectors to include detailed…
jaruesink Mar 14, 2025
6ebcbff
fix(storefront): add margin to header in ProductTemplate for improved…
jaruesink Mar 14, 2025
195b4a9
feat(product-options): enhance product option selectors with price fo…
jaruesink Mar 14, 2025
f92998a
fix(storefront): update ProductImageGallery to use object-cover for b…
jaruesink Mar 14, 2025
5c04727
fix(ProductTemplate): add key prop to ProductImageGallery for improve…
jaruesink Mar 14, 2025
5fa67b5
Update apps/storefront/app/components/product/ProductOptionSelectorSe…
jaruesink Mar 14, 2025
7166941
refactor(ProductTemplate): modularize option handling with updateCont…
jaruesink Mar 14, 2025
53925f8
Merge branch 'updated-options-logic' of github.com:lambda-curry/medus…
jaruesink Mar 14, 2025
513595b
feat(cart): refactor CartDrawer component and enhance useCart hook
jaruesink Mar 14, 2025
b1562e1
fix(ProductTemplate): remove unnecessary useEffect and clean up code
jaruesink Mar 14, 2025
9197b0e
Update apps/storefront/app/components/cart/CartDrawerDesignDoc.md
jaruesink Mar 14, 2025
6bf44a4
fix(CartDrawer): simplify checkout button disabled logic
jaruesink Mar 14, 2025
d80751c
Merge branch 'cart-drawer' of github.com:lambda-curry/medusa2-starter…
jaruesink Mar 14, 2025
0a15181
Merge pull request #48 from lambda-curry/cart-drawer
jaruesink Mar 14, 2025
0263754
Merge pull request #47 from lambda-curry/updated-options-logic
jaruesink Mar 14, 2025
4b3779a
Merge branch 'main' of github.com:lambda-curry/medusa2-starter into t…
jaruesink Mar 14, 2025
162a22f
refactor(cart): improve CartDrawer logic and enhance useCart hook
jaruesink Mar 14, 2025
829d39d
refactor(cart): improve CartDrawer logic and enhance useCart hook
jaruesink Mar 14, 2025
4e9c1e4
Merge branch 'main' of github.com:lambda-curry/medusa2-starter into t…
jaruesink Mar 14, 2025
acf6239
refactor(cart): enhance CartDrawer logic and clean up useCart hook
jaruesink Mar 15, 2025
6835190
Merge branch 'main' of github.com:lambda-curry/medusa2-starter into t…
jaruesink Mar 15, 2025
ce3aff2
refactor(cart): enhance CartDrawerLoading component and improve condi…
jaruesink Mar 15, 2025
2f96ef9
Merge branch 'main' of github.com:lambda-curry/medusa2-starter into t…
jaruesink Mar 15, 2025
6aeadf9
refactor(cart): enhance CartDrawerFooter and streamline checkout logic
jaruesink Mar 15, 2025
a2068d0
Merge branch 'main' of github.com:lambda-curry/medusa2-starter into t…
jaruesink Mar 15, 2025
7cb548b
refactor(GridCTA, IndexRoute): standardize border radius across compo…
jaruesink Mar 15, 2025
41ab598
Add reviews and AI MCP to training demo - need env variables
jaruesink Apr 9, 2025
becf1bf
Merge pull request #2 from lambda-curry/training-demo-with-mcp
jaruesink Apr 9, 2025
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
124 changes: 124 additions & 0 deletions .github/workflows/training-demo-deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@

name: Training Demo Deploy
on:
push:
branches:
- training-demo
- main

jobs:
setup:
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install dependencies
uses: ./.github/composite/monorepo-install

- uses: dtinth/setup-github-actions-caching-for-turbo@v1

- name: Build Packages
run: yarn build

deploy-storefront:
needs: setup
runs-on: ubuntu-latest
timeout-minutes: 15
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install dependencies
uses: ./.github/composite/monorepo-install
with:
lookup-only: 'true'

- uses: dtinth/setup-github-actions-caching-for-turbo@v1

- name: Push Medusa Docker
uses: ./.github/composite/docker/storefront
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCKER_REPOSITORY: ghcr.io/lambda-curry/medusa2-starter/storefront
DOCKER_TAG: ${{ github.sha }}

- name: Helm Update
uses: WyriHaximus/github-action-helm3@v2
env:
HELM_NAME: storefront
KUBE_NAMESPACE: 360training
DOCKER_TAG: ${{ github.sha }}
DOCKER_REPOSITORY: ghcr.io/lambda-curry/medusa2-starter/storefront
with:
exec: |
helm upgrade ${HELM_NAME} --reuse-values \
--set image.tag=${DOCKER_TAG} \
--set image.repository=${DOCKER_REPOSITORY} \
./helm-charts/storefront/ -n ${KUBE_NAMESPACE}
kubeconfig: ${{ secrets.EKS_KUBECONFIG }}

deploy-medusa:
needs: setup
runs-on: ubuntu-latest
timeout-minutes: 15
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install dependencies
uses: ./.github/composite/monorepo-install
with:
lookup-only: 'true'

- uses: dtinth/setup-github-actions-caching-for-turbo@v1

- name: Push Medusa Docker
uses: ./.github/composite/docker/medusa
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCKER_REPOSITORY: ghcr.io/lambda-curry/medusa2-starter/medusa
DOCKER_TAG: ${{ github.sha }}

- name: Helm Update
uses: WyriHaximus/github-action-helm3@v2
env:
HELM_NAME: medusa
KUBE_NAMESPACE: 360training
DOCKER_TAG: ${{ github.sha }}
DOCKER_REPOSITORY: ghcr.io/lambda-curry/medusa2-starter/medusa
with:
exec: |
helm upgrade ${HELM_NAME} --reuse-values \
--set image.tag=${DOCKER_TAG} \
--set image.repository=${DOCKER_REPOSITORY} \
./helm-charts/medusa/ -n ${KUBE_NAMESPACE}
kubeconfig: ${{ secrets.EKS_KUBECONFIG }}
14 changes: 7 additions & 7 deletions apps/medusa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@
},
"dependencies": {
"@lambdacurry/medusa-product-reviews": "0.0.6",
"@medusajs/admin-sdk": "2.5.0",
"@medusajs/cli": "2.5.0",
"@medusajs/framework": "2.5.0",
"@medusajs/js-sdk": "2.5.0",
"@medusajs/medusa": "2.5.0",
"@medusajs/types": "2.5.0",
"@medusajs/admin-sdk": "2.6.0",
"@medusajs/cli": "2.6.0",
"@medusajs/framework": "2.6.0",
"@medusajs/js-sdk": "2.6.0",
"@medusajs/medusa": "2.6.0",
"@medusajs/types": "2.6.0",
"@mikro-orm/core": "6.4.3",
"@mikro-orm/knex": "6.4.3",
"@mikro-orm/migrations": "6.4.3",
Expand All @@ -47,7 +47,7 @@
"pg": "^8.13.0"
},
"devDependencies": {
"@medusajs/test-utils": "2.5.0",
"@medusajs/test-utils": "2.6.0",
"@mikro-orm/cli": "6.4.3",
"@mikro-orm/core": "6.4.3",
"@mikro-orm/migrations": "6.4.3",
Expand Down
Loading
Loading