mercur-cli 0.1.5 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/cli/backend-setup.js +2 -2
  2. package/cli/data.js +3 -0
  3. package/cli/frontend-setup.js +17 -0
  4. package/cli/full-install.js +7 -1
  5. package/cli/pull-and-install.js +13 -1
  6. package/cli/start.js +14 -1
  7. package/index.js +5 -0
  8. package/package.json +1 -1
  9. package/mercur/backend/.env.template +0 -8
  10. package/mercur/backend/.env.test +0 -0
  11. package/mercur/backend/.github/dependabot.yml +0 -21
  12. package/mercur/backend/.github/scripts/wait-for-server-live.sh +0 -29
  13. package/mercur/backend/.github/workflows/test-cli.yml +0 -222
  14. package/mercur/backend/.github/workflows/update-preview-deps-ci.yml +0 -69
  15. package/mercur/backend/.github/workflows/update-preview-deps.yml +0 -67
  16. package/mercur/backend/.vscode/settings.json +0 -2
  17. package/mercur/backend/.yarnrc.yml +0 -1
  18. package/mercur/backend/README.md +0 -62
  19. package/mercur/backend/instrumentation.ts +0 -24
  20. package/mercur/backend/integration-tests/http/README.md +0 -29
  21. package/mercur/backend/integration-tests/http/health.spec.ts +0 -15
  22. package/mercur/backend/integration-tests/setup.js +0 -3
  23. package/mercur/backend/jest.config.js +0 -27
  24. package/mercur/backend/medusa-config.ts +0 -88
  25. package/mercur/backend/package.json +0 -65
  26. package/mercur/backend/src/admin/README.md +0 -33
  27. package/mercur/backend/src/admin/tsconfig.json +0 -24
  28. package/mercur/backend/src/admin/vite-env.d.ts +0 -1
  29. package/mercur/backend/src/api/README.md +0 -135
  30. package/mercur/backend/src/api/admin/custom/route.ts +0 -8
  31. package/mercur/backend/src/api/store/custom/route.ts +0 -8
  32. package/mercur/backend/src/jobs/README.md +0 -38
  33. package/mercur/backend/src/links/README.md +0 -26
  34. package/mercur/backend/src/modules/README.md +0 -117
  35. package/mercur/backend/src/scripts/README.md +0 -63
  36. package/mercur/backend/src/scripts/seed/seed-functions.ts +0 -519
  37. package/mercur/backend/src/scripts/seed/seed-products.ts +0 -601
  38. package/mercur/backend/src/scripts/seed.ts +0 -75
  39. package/mercur/backend/src/subscribers/README.md +0 -61
  40. package/mercur/backend/src/workflows/README.md +0 -81
  41. package/mercur/backend/tsconfig.json +0 -35
  42. package/mercur/backend/yarn.lock +0 -11469
@@ -11,9 +11,9 @@ export async function backendSetup(options) {
11
11
  await fs.writeFile(
12
12
  path.join(targetDir, "backend/.env"),
13
13
  `STORE_CORS=http://localhost:3000
14
- ADMIN_CORS=http://localhost:9000
14
+ ADMIN_CORS=http://localhost:9000,http://localhost:9001
15
15
  VENDOR_CORS=http://localhost:5173
16
- AUTH_CORS=http://localhost:9000,http://localhost:5173,http://localhost:3000
16
+ AUTH_CORS=http://localhost:9000,http://localhost:9001,http://localhost:5173,http://localhost:3000
17
17
  REDIS_URL=redis://localhost:6379
18
18
  JWT_SECRET=supersecret
19
19
  COOKIE_SECRET=supersecret
package/cli/data.js CHANGED
@@ -16,6 +16,9 @@ module.exports = defineConfig({
16
16
  cookieSecret: process.env.COOKIE_SECRET || 'supersecret'
17
17
  }
18
18
  },
19
+ admin: {
20
+ disable: true,
21
+ },
19
22
  plugins: [
20
23
  {
21
24
  resolve: '@mercurjs/b2c-core',
@@ -23,6 +23,23 @@ NEXT_PUBLIC_ALGOLIA_SEARCH_KEY=`
23
23
  spinner.succeed("Storefront ready!");
24
24
  }
25
25
 
26
+ export async function adminPanelSetup(options) {
27
+ const targetDir = options.directory;
28
+ const spinner = ora("Setting up Mercur admin panel...").start();
29
+
30
+ await fs.writeFile(
31
+ path.join(targetDir, "admin-panel/.env"),
32
+ `
33
+ VITE_MEDUSA_BASE='/'
34
+ VITE_MEDUSA_STOREFRONT_URL=http://localhost:3000
35
+ VITE_MEDUSA_BACKEND_URL=http://localhost:9000
36
+ VITE_MEDUSA_B2B_PANEL=true
37
+ `
38
+ );
39
+
40
+ spinner.succeed("Admin panel ready!");
41
+ }
42
+
26
43
  export async function vendorPanelSetup(options) {
27
44
  const targetDir = options.directory;
28
45
  const spinner = ora("Setting up Mercur vendor panel...").start();
@@ -2,7 +2,11 @@ import chalk from "chalk";
2
2
  import inquirer from "inquirer";
3
3
  import { pullAndInstall } from "./pull-and-install.js";
4
4
  import { backendSetup } from "./backend-setup.js";
5
- import { storefrontSetup, vendorPanelSetup } from "./frontend-setup.js";
5
+ import {
6
+ storefrontSetup,
7
+ vendorPanelSetup,
8
+ adminPanelSetup,
9
+ } from "./frontend-setup.js";
6
10
 
7
11
  export async function fullInstall() {
8
12
  const { project_name } = await inquirer.prompt({
@@ -77,6 +81,8 @@ export async function fullInstall() {
77
81
  directory: project_name,
78
82
  });
79
83
 
84
+ await adminPanelSetup({ directory: project_name });
85
+
80
86
  if (install_storefront) {
81
87
  await storefrontSetup({ directory: project_name, publishableKey });
82
88
  }
@@ -17,7 +17,7 @@ export async function pullAndInstall(options) {
17
17
  spinner.text = "Installing Mercur backend...";
18
18
  await execa(
19
19
  "git",
20
- ["clone", "https://github.com/medusajs/medusa-starter-default", "backend"],
20
+ ["clone", "https://github.com/mercurjs/clean-medusa-starter", "backend"],
21
21
  {
22
22
  cwd: targetDir,
23
23
  }
@@ -56,6 +56,18 @@ export async function pullAndInstall(options) {
56
56
 
57
57
  await execa("yarn", ["install"], { cwd: path.join(targetDir, "backend") });
58
58
 
59
+ spinner.text = "Installing Mercur admin panel...";
60
+ await execa(
61
+ "git",
62
+ ["clone", "https://github.com/mercurjs/admin-panel.git", "admin-panel"],
63
+ {
64
+ cwd: targetDir,
65
+ }
66
+ );
67
+ await execa("yarn", ["install"], {
68
+ cwd: path.join(targetDir, "admin-panel"),
69
+ });
70
+
59
71
  if (options.install_storefront) {
60
72
  spinner.text = "Installing Mercur storefront...";
61
73
  await execa(
package/cli/start.js CHANGED
@@ -10,6 +10,7 @@ export async function startAll() {
10
10
  const backendExists = fs.existsSync("backend");
11
11
  const storefrontExists = fs.existsSync("storefront");
12
12
  const vendorExists = fs.existsSync("vendor-panel");
13
+ const adminPanelExists = fs.existsSync("admin-panel");
13
14
 
14
15
  if (!backendExists) {
15
16
  spinner.fail("Mercur backend not detected!");
@@ -24,6 +25,13 @@ export async function startAll() {
24
25
  });
25
26
  servicesToRun.push(backend);
26
27
 
28
+ if (adminPanelExists) {
29
+ const adminPanel = execa("yarn", ["dev", "--port", "9001"], {
30
+ cwd: path.join(process.cwd(), "admin-panel"),
31
+ });
32
+ servicesToRun.push(adminPanel);
33
+ }
34
+
27
35
  if (storefrontExists) {
28
36
  spinner.text = "Starting Mercur storefront...";
29
37
  const storefront = execa("npm", ["run", "dev"], {
@@ -42,7 +50,12 @@ export async function startAll() {
42
50
 
43
51
  spinner.succeed(chalk.green("Development environment started!"));
44
52
  console.log(chalk.blue("\nServices:"));
45
- console.log("- Backend: http://localhost:9000");
53
+ console.log("- API: http://localhost:9000");
54
+
55
+ if (adminPanelExists) {
56
+ console.log("- Admin Panel: http://localhost:9001");
57
+ }
58
+
46
59
  if (storefrontExists) {
47
60
  console.log("- B2C Storefront: http://localhost:3000");
48
61
  }
package/index.js CHANGED
@@ -15,6 +15,11 @@ console.log(
15
15
  `)
16
16
  );
17
17
 
18
+ program.option("-v, --version", "Show version").action(() => {
19
+ console.log(chalk.blue(`Mercur CLI v0.1.7`));
20
+ process.exit(0);
21
+ });
22
+
18
23
  program
19
24
  .command("install")
20
25
  .version("1.1.0")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mercur-cli",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "CLI for Mercur - Open Source Marketplace Platform",
5
5
  "author": "MercurJS <hello@mercurjs.com> (https://mercurjs.com)",
6
6
  "repository": {
@@ -1,8 +0,0 @@
1
- STORE_CORS=http://localhost:8000,https://docs.medusajs.com
2
- ADMIN_CORS=http://localhost:5173,http://localhost:9000,https://docs.medusajs.com
3
- AUTH_CORS=http://localhost:5173,http://localhost:9000,https://docs.medusajs.com
4
- REDIS_URL=redis://localhost:6379
5
- JWT_SECRET=supersecret
6
- COOKIE_SECRET=supersecret
7
- DATABASE_URL=
8
- DB_NAME=merctestcli
File without changes
@@ -1,21 +0,0 @@
1
- version: 2
2
- updates:
3
- - package-ecosystem: "npm"
4
- directory: "/"
5
- schedule:
6
- interval: "daily"
7
- allow:
8
- - dependency-type: production
9
- groups:
10
- medusa:
11
- patterns:
12
- - "@medusajs*"
13
- - "medusa*"
14
- update-types:
15
- - "minor"
16
- - "patch"
17
- ignore:
18
- - dependency-name: "@medusajs*"
19
- update-types: ["version-update:semver-major"]
20
- - dependency-name: "medusa*"
21
- update-types: ["version-update:semver-major"]
@@ -1,29 +0,0 @@
1
- #!/bin/bash
2
-
3
- for i in {1..6}
4
- do
5
- echo $i
6
- status_code=$(curl \
7
- -X GET \
8
- --write-out %{http_code} \
9
- --silent\
10
- --output /dev/null\
11
- http://localhost:9000/store/products)
12
-
13
- echo $status_code
14
- if [[ "$status_code" -ne 000 ]] ; then
15
- echo "exiting"
16
- exit 0
17
- else
18
- sleep 5
19
- fi
20
- done
21
-
22
- echo $status_code
23
-
24
- if [[ "$status_code" = 000 ]] ; then
25
- echo "Site status changed to $status_code"
26
- exit 1
27
- else
28
- exit 0
29
- fi
@@ -1,222 +0,0 @@
1
- name: Test CLI
2
- on:
3
- pull_request:
4
- branches:
5
- - 'master'
6
- - 'ci'
7
-
8
- jobs:
9
- test-cli-yarn:
10
- name: "Test CLI (Yarn)"
11
- env:
12
- NODE_ENV: CI
13
- REDIS_URL: redis://localhost:6379
14
- DATABASE_URL: "postgres://postgres:postgres@localhost/cli-test"
15
- POSTGRES_URL: "postgres://postgres:postgres@localhost/cli-test"
16
- services:
17
- redis:
18
- image: redis
19
- options: >-
20
- --health-cmd "redis-cli ping"
21
- --health-interval 10s
22
- --health-timeout 5s
23
- --health-retries 5
24
- ports:
25
- - 6379:6379
26
-
27
- postgres:
28
- image: postgres
29
- env:
30
- POSTGRES_PASSWORD: postgres
31
- POSTGRES_USER: postgres
32
- POSTGRES_DB: cli-test
33
- options: >-
34
- --health-cmd pg_isready
35
- --health-interval 10s
36
- --health-timeout 5s
37
- --health-retries 5
38
- ports:
39
- - 5432:5432
40
-
41
- runs-on: ubuntu-latest
42
- steps:
43
- - name: Checkout
44
- uses: actions/checkout@v3
45
- with:
46
- fetch-depth: 0
47
-
48
- - name: Cancel Previous Runs
49
- uses: styfle/cancel-workflow-action@0.11.0
50
- with:
51
- access_token: ${{ github.token }}
52
-
53
- - name: Setup Node.js environment
54
- uses: actions/setup-node@v3
55
- with:
56
- node-version: 20
57
-
58
- - name: Install Dependencies
59
- run: yarn install
60
-
61
- - name: Check CLI tool is installed
62
- run: ./node_modules/.bin/medusa -v
63
-
64
- - name: run build
65
- run: yarn build
66
-
67
- - name: Run migrations
68
- run: npx medusa db:migrate
69
-
70
- - name: Run seed
71
- run: yarn seed
72
-
73
- - name: Run development server
74
- run: yarn dev &
75
-
76
- - name: Wait for live server response
77
- shell: "bash"
78
- run: ./.github/scripts/wait-for-server-live.sh
79
-
80
- - name: Kill server
81
- shell: "bash"
82
- run: kill -9 $(lsof -t -i :9000)
83
-
84
- test-cli-npm:
85
- name: "Test CLI (npm)"
86
- env:
87
- NODE_ENV: CI
88
- REDIS_URL: redis://localhost:6379
89
- DATABASE_URL: "postgres://postgres:postgres@localhost/cli-test"
90
- POSTGRES_URL: "postgres://postgres:postgres@localhost/cli-test"
91
- services:
92
- postgres:
93
- image: postgres
94
- env:
95
- POSTGRES_PASSWORD: postgres
96
- POSTGRES_USER: postgres
97
- POSTGRES_DB: cli-test
98
- options: >-
99
- --health-cmd pg_isready
100
- --health-interval 10s
101
- --health-timeout 5s
102
- --health-retries 5
103
- ports:
104
- - 5432:5432
105
-
106
- runs-on: ubuntu-latest
107
- steps:
108
- - name: Checkout
109
- uses: actions/checkout@v3
110
- with:
111
- fetch-depth: 0
112
-
113
- - name: Cancel Previous Runs
114
- uses: styfle/cancel-workflow-action@0.11.0
115
- with:
116
- access_token: ${{ github.token }}
117
-
118
- - name: Setup Node.js environment
119
- uses: actions/setup-node@v3
120
- with:
121
- node-version: 20
122
- cache: "npm"
123
-
124
- - name: Install Dependencies
125
- run: npm install
126
-
127
- - name: Check CLI tool is installed
128
- run: ./node_modules/.bin/medusa -v
129
-
130
- - name: run medusa build
131
- run: npm run build
132
-
133
- - name: Run migrations
134
- run: npx medusa db:migrate
135
-
136
- - name: Run seed
137
- run: npm run seed
138
-
139
- - name: Run development server
140
- run: npm run dev -- &
141
-
142
- - name: Wait for live server response
143
- shell: "bash"
144
- run: ./.github/scripts/wait-for-server-live.sh
145
-
146
- - name: Kill server
147
- shell: "bash"
148
- run: kill -9 $(lsof -t -i :9000)
149
-
150
- test-cli-pnpm:
151
- name: "Test CLI (pnpm)"
152
- env:
153
- NODE_ENV: CI
154
- REDIS_URL: redis://localhost:6379
155
- DATABASE_URL: "postgres://postgres:postgres@localhost/cli-test"
156
- POSTGRES_URL: "postgres://postgres:postgres@localhost/cli-test"
157
- services:
158
- postgres:
159
- image: postgres
160
- env:
161
- POSTGRES_PASSWORD: postgres
162
- POSTGRES_USER: postgres
163
- POSTGRES_DB: cli-test
164
- options: >-
165
- --health-cmd pg_isready
166
- --health-interval 10s
167
- --health-timeout 5s
168
- --health-retries 5
169
- ports:
170
- - 5432:5432
171
-
172
- runs-on: ubuntu-latest
173
- steps:
174
- - name: Checkout
175
- uses: actions/checkout@v3
176
- with:
177
- fetch-depth: 0
178
-
179
- - name: Cancel Previous Runs
180
- uses: styfle/cancel-workflow-action@0.11.0
181
- with:
182
- access_token: ${{ github.token }}
183
-
184
- - name: Create pnpm-lock.yaml
185
- run: touch pnpm-lock.yaml
186
-
187
- - uses: pnpm/action-setup@v2
188
- with:
189
- version: 9
190
-
191
- - name: Setup Node.js environment
192
- uses: actions/setup-node@v3
193
- with:
194
- node-version: 20
195
- cache: "pnpm"
196
-
197
- - name: Install Dependencies
198
- run: pnpm install
199
-
200
- - name: Check CLI tool is installed
201
- run: ./node_modules/.bin/medusa -v
202
-
203
- - name: run medusa build
204
- run: pnpm run build
205
-
206
- - name: Run migrations
207
- run: npx medusa db:migrate
208
-
209
- - name: Run seed
210
- run: pnpm run seed
211
-
212
- - name: Run development server
213
- run: pnpm run dev -- &
214
-
215
- - name: Wait for live server response
216
- shell: "bash"
217
- run: ./.github/scripts/wait-for-server-live.sh
218
-
219
- - name: Kill server
220
- shell: "bash"
221
- run: kill -9 $(lsof -t -i :9000)
222
-
@@ -1,69 +0,0 @@
1
- name: "Update Preview Dependencies (feat/ci)"
2
- on:
3
- workflow_dispatch:
4
-
5
- jobs:
6
- update:
7
- runs-on: ubuntu-latest
8
- steps:
9
- - name: Cancel Previous Runs
10
- uses: styfle/cancel-workflow-action@0.9.1
11
- with:
12
- access_token: ${{ github.token }}
13
-
14
- - name: Checkout
15
- uses: actions/checkout@v2.3.5
16
- with:
17
- ref: 'ci'
18
-
19
- - name: Setup Node.js 20
20
- uses: actions/setup-node@v3
21
- with:
22
- node-version: 20
23
-
24
- - name: Remove yarn.lock
25
- run: rm yarn.lock
26
-
27
- - name: Install Dependencies
28
- run: yarn
29
-
30
- - name: Close Previous PRs
31
- shell: "bash"
32
- run: |
33
-
34
- PR_LIST=$(gh pr list --base ci --json number,headRefName)
35
-
36
- # Filter out PRs where headRefName starts with 'chore/update-preview'
37
- FILTERED_PR_LIST=$(echo "$PR_LIST" | jq '[.[] | select(.headRefName | test("^chore/update-preview"))]')
38
-
39
- echo "$FILTERED_PR_LIST"
40
-
41
- # Check if any pull requests were found after filtering
42
- if [ -z "$FILTERED_PR_LIST" ] || [ "$FILTERED_PR_LIST" = "[]" ]; then
43
- echo "No pull requests found on branch ci after filtering"
44
- exit 0
45
- fi
46
-
47
- # Close each filtered pull request
48
- echo "$FILTERED_PR_LIST" | jq -r '.[].number' | while read -r PR_NUMBER; do
49
- echo "Closing pull request #$PR_NUMBER"
50
- gh pr close "$PR_NUMBER" -d
51
- done
52
- env:
53
- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54
- OWNER: ${{ github.repository_owner }}
55
- REPO: ${{ github.event.repository.name }}
56
-
57
- - name: Open PR with changes
58
- uses: peter-evans/create-pull-request@v5
59
- with:
60
- title: "chore(ci): updated preview dependencies [automated]"
61
- commit-message: "chore(ci): updated preview dependencies [automated]"
62
- body: "This PR updates preview dependencies to the latest versions."
63
- branch: "chore/update-preview"
64
- branch-suffix: "timestamp"
65
- token: ${{ secrets.PAT_TOKEN }}
66
- base: "ci"
67
- add-paths: yarn.lock
68
- committer: "GitHub <noreply@github.com>"
69
- author: "GitHub <github-actions[bot]@users.noreply.github.com>"
@@ -1,67 +0,0 @@
1
- name: "Update Preview Dependencies (master)"
2
- on:
3
- workflow_dispatch:
4
-
5
- jobs:
6
- update:
7
- runs-on: ubuntu-latest
8
- steps:
9
- - name: Cancel Previous Runs
10
- uses: styfle/cancel-workflow-action@0.9.1
11
- with:
12
- access_token: ${{ github.token }}
13
-
14
- - name: Checkout
15
- uses: actions/checkout@v2.3.5
16
-
17
- - name: Setup Node.js 20
18
- uses: actions/setup-node@v3
19
- with:
20
- node-version: 20
21
-
22
- - name: Remove yarn.lock
23
- run: rm yarn.lock
24
-
25
- - name: Install Dependencies
26
- run: yarn
27
-
28
- - name: Close Previous PRs
29
- shell: "bash"
30
- run: |
31
-
32
- PR_LIST=$(gh pr list --base master --json number,headRefName)
33
-
34
- # Filter out PRs where headRefName starts with 'chore/update-preview'
35
- FILTERED_PR_LIST=$(echo "$PR_LIST" | jq '[.[] | select(.headRefName | test("^chore/update-preview"))]')
36
-
37
- echo "$FILTERED_PR_LIST"
38
-
39
- # Check if any pull requests were found after filtering
40
- if [ -z "$FILTERED_PR_LIST" ] || [ "$FILTERED_PR_LIST" = "[]" ]; then
41
- echo "No pull requests found on branch master after filtering"
42
- exit 0
43
- fi
44
-
45
- # Close each filtered pull request
46
- echo "$FILTERED_PR_LIST" | jq -r '.[].number' | while read -r PR_NUMBER; do
47
- echo "Closing pull request #$PR_NUMBER"
48
- gh pr close "$PR_NUMBER" -d
49
- done
50
- env:
51
- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52
- OWNER: ${{ github.repository_owner }}
53
- REPO: ${{ github.event.repository.name }}
54
-
55
- - name: Open PR with changes
56
- uses: peter-evans/create-pull-request@v5
57
- with:
58
- title: "chore(master): updated preview dependencies [automated]"
59
- body: "This PR updates preview dependencies to the latest versions."
60
- commit-message: "chore(master): updated preview dependencies [automated]"
61
- branch: "chore/update-preview"
62
- branch-suffix: "timestamp"
63
- token: ${{ secrets.PAT_TOKEN }}
64
- base: "master"
65
- add-paths: yarn.lock
66
- committer: "GitHub <noreply@github.com>"
67
- author: "GitHub <github-actions[bot]@users.noreply.github.com>"
@@ -1,2 +0,0 @@
1
- {
2
- }
@@ -1 +0,0 @@
1
- nodeLinker: node-modules
@@ -1,62 +0,0 @@
1
- <p align="center">
2
- <a href="https://www.medusajs.com">
3
- <picture>
4
- <source media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/59018053/229103275-b5e482bb-4601-46e6-8142-244f531cebdb.svg">
5
- <source media="(prefers-color-scheme: light)" srcset="https://user-images.githubusercontent.com/59018053/229103726-e5b529a3-9b3f-4970-8a1f-c6af37f087bf.svg">
6
- <img alt="Medusa logo" src="https://user-images.githubusercontent.com/59018053/229103726-e5b529a3-9b3f-4970-8a1f-c6af37f087bf.svg">
7
- </picture>
8
- </a>
9
- </p>
10
- <h1 align="center">
11
- Medusa
12
- </h1>
13
-
14
- <h4 align="center">
15
- <a href="https://docs.medusajs.com">Documentation</a> |
16
- <a href="https://www.medusajs.com">Website</a>
17
- </h4>
18
-
19
- <p align="center">
20
- Building blocks for digital commerce
21
- </p>
22
- <p align="center">
23
- <a href="https://github.com/medusajs/medusa/blob/master/CONTRIBUTING.md">
24
- <img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat" alt="PRs welcome!" />
25
- </a>
26
- <a href="https://www.producthunt.com/posts/medusa"><img src="https://img.shields.io/badge/Product%20Hunt-%231%20Product%20of%20the%20Day-%23DA552E" alt="Product Hunt"></a>
27
- <a href="https://discord.gg/xpCwq3Kfn8">
28
- <img src="https://img.shields.io/badge/chat-on%20discord-7289DA.svg" alt="Discord Chat" />
29
- </a>
30
- <a href="https://twitter.com/intent/follow?screen_name=medusajs">
31
- <img src="https://img.shields.io/twitter/follow/medusajs.svg?label=Follow%20@medusajs" alt="Follow @medusajs" />
32
- </a>
33
- </p>
34
-
35
- ## Compatibility
36
-
37
- This starter is compatible with versions >= 2 of `@medusajs/medusa`.
38
-
39
- ## Getting Started
40
-
41
- Visit the [Quickstart Guide](https://docs.medusajs.com/learn/installation) to set up a server.
42
-
43
- Visit the [Docs](https://docs.medusajs.com/learn/installation#get-started) to learn more about our system requirements.
44
-
45
- ## What is Medusa
46
-
47
- Medusa is a set of commerce modules and tools that allow you to build rich, reliable, and performant commerce applications without reinventing core commerce logic. The modules can be customized and used to build advanced ecommerce stores, marketplaces, or any product that needs foundational commerce primitives. All modules are open-source and freely available on npm.
48
-
49
- Learn more about [Medusa’s architecture](https://docs.medusajs.com/learn/introduction/architecture) and [commerce modules](https://docs.medusajs.com/learn/fundamentals/modules/commerce-modules) in the Docs.
50
-
51
- ## Community & Contributions
52
-
53
- The community and core team are available in [GitHub Discussions](https://github.com/medusajs/medusa/discussions), where you can ask for support, discuss roadmap, and share ideas.
54
-
55
- Join our [Discord server](https://discord.com/invite/medusajs) to meet other community members.
56
-
57
- ## Other channels
58
-
59
- - [GitHub Issues](https://github.com/medusajs/medusa/issues)
60
- - [Twitter](https://twitter.com/medusajs)
61
- - [LinkedIn](https://www.linkedin.com/company/medusajs)
62
- - [Medusa Blog](https://medusajs.com/blog/)
@@ -1,24 +0,0 @@
1
- // Uncomment this file to enable instrumentation and observability using OpenTelemetry
2
- // Refer to the docs for installation instructions: https://docs.medusajs.com/learn/debugging-and-testing/instrumentation
3
-
4
- // import { registerOtel } from "@medusajs/medusa"
5
- // // If using an exporter other than Zipkin, require it here.
6
- // import { ZipkinExporter } from "@opentelemetry/exporter-zipkin"
7
-
8
- // // If using an exporter other than Zipkin, initialize it here.
9
- // const exporter = new ZipkinExporter({
10
- // serviceName: 'my-medusa-project',
11
- // })
12
-
13
- // export function register() {
14
- // registerOtel({
15
- // serviceName: 'medusajs',
16
- // // pass exporter
17
- // exporter,
18
- // instrument: {
19
- // http: true,
20
- // workflows: true,
21
- // query: true
22
- // },
23
- // })
24
- // }