Selaa lähdekoodia

first init

master
azri 2 viikkoa sitten
vanhempi
commit
cec7f59b4a
4 muutettua tiedostoa jossa 193 lisäystä ja 0 poistoa
  1. 78
    0
      .gitignore
  2. 6
    0
      README.md
  3. 107
    0
      package-lock.json
  4. 2
    0
      package.json

+ 78
- 0
.gitignore Näytä tiedosto

@@ -21,3 +21,81 @@
21 21
 npm-debug.log*
22 22
 yarn-debug.log*
23 23
 yarn-error.log*
24
+
25
+# ---> Node
26
+# Logs
27
+logs
28
+*.log
29
+npm-debug.log*
30
+yarn-debug.log*
31
+yarn-error.log*
32
+
33
+# Runtime data
34
+pids
35
+*.pid
36
+*.seed
37
+*.pid.lock
38
+
39
+# Directory for instrumented libs generated by jscoverage/JSCover
40
+lib-cov
41
+
42
+# Coverage directory used by tools like istanbul
43
+coverage
44
+
45
+# nyc test coverage
46
+.nyc_output
47
+
48
+# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
49
+.grunt
50
+
51
+# Bower dependency directory (https://bower.io/)
52
+bower_components
53
+
54
+# node-waf configuration
55
+.lock-wscript
56
+
57
+# Compiled binary addons (https://nodejs.org/api/addons.html)
58
+build/Release
59
+
60
+# Dependency directories
61
+node_modules/
62
+jspm_packages/
63
+
64
+# TypeScript v1 declaration files
65
+typings/
66
+
67
+# Optional npm cache directory
68
+.npm
69
+
70
+# Optional eslint cache
71
+.eslintcache
72
+
73
+# Optional REPL history
74
+.node_repl_history
75
+
76
+# Output of 'npm pack'
77
+*.tgz
78
+
79
+# Yarn Integrity file
80
+.yarn-integrity
81
+
82
+# dotenv environment variables file
83
+.env
84
+
85
+# parcel-bundler cache (https://parceljs.org/)
86
+.cache
87
+
88
+# next.js build output
89
+.next
90
+
91
+# nuxt.js build output
92
+.nuxt
93
+
94
+# vuepress build output
95
+.vuepress/dist
96
+
97
+# Serverless directories
98
+.serverless
99
+
100
+# FuseBox cache
101
+.fusebox/

+ 6
- 0
README.md Näytä tiedosto

@@ -1,3 +1,7 @@
1
+# Shopify API
2
+
3
+Amber Shopify Project created using ReactJS+React-Redux with GraphQL API integration. Storefront Shopify API: https://github.com/Shopify/shopify-app-js/tree/main/packages/api-clients/storefront-api-client#readme
4
+
1 5
 # Getting Started with Create React App
2 6
 
3 7
 This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
@@ -68,3 +72,5 @@ This section has moved here: [https://facebook.github.io/create-react-app/docs/d
68 72
 ### `npm run build` fails to minify
69 73
 
70 74
 This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
75
+
76
+

+ 107
- 0
package-lock.json Näytä tiedosto

@@ -13,6 +13,8 @@
13 13
         "@testing-library/user-event": "^13.5.0",
14 14
         "react": "^18.3.1",
15 15
         "react-dom": "^18.3.1",
16
+        "react-redux": "^9.1.2",
17
+        "react-router-dom": "^7.0.2",
16 18
         "react-scripts": "5.0.1",
17 19
         "web-vitals": "^2.1.4"
18 20
       }
@@ -3716,6 +3718,12 @@
3716 3718
         "@types/node": "*"
3717 3719
       }
3718 3720
     },
3721
+    "node_modules/@types/cookie": {
3722
+      "version": "0.6.0",
3723
+      "resolved": "https://registry.npmjs.org/@types/cookie/-/cookie-0.6.0.tgz",
3724
+      "integrity": "sha512-4Kh9a6B2bQciAhf7FSuMRRkUWecJgJu9nPnx3yzpsfXX/c50REIqpHY4C82bXP90qrLtXtkDxTZosYO3UpOwlA==",
3725
+      "license": "MIT"
3726
+    },
3719 3727
     "node_modules/@types/eslint": {
3720 3728
       "version": "8.56.12",
3721 3729
       "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.56.12.tgz",
@@ -4191,6 +4199,12 @@
4191 4199
       "integrity": "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==",
4192 4200
       "license": "MIT"
4193 4201
     },
4202
+    "node_modules/@types/use-sync-external-store": {
4203
+      "version": "0.0.3",
4204
+      "resolved": "https://registry.npmjs.org/@types/use-sync-external-store/-/use-sync-external-store-0.0.3.tgz",
4205
+      "integrity": "sha512-EwmlvuaxPNej9+T4v5AuBPJa2x2UOJVdjCtDHgcDqitUeOtjnJKJ+apYjVcAoBEMjKW1VVFGZLUb5+qqa09XFA==",
4206
+      "license": "MIT"
4207
+    },
4194 4208
     "node_modules/@types/ws": {
4195 4209
       "version": "8.5.13",
4196 4210
       "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.13.tgz",
@@ -14145,6 +14159,29 @@
14145 14159
       "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==",
14146 14160
       "license": "MIT"
14147 14161
     },
14162
+    "node_modules/react-redux": {
14163
+      "version": "9.1.2",
14164
+      "resolved": "https://registry.npmjs.org/react-redux/-/react-redux-9.1.2.tgz",
14165
+      "integrity": "sha512-0OA4dhM1W48l3uzmv6B7TXPCGmokUU4p1M44DGN2/D9a1FjVPukVjER1PcPX97jIg6aUeLq1XJo1IpfbgULn0w==",
14166
+      "license": "MIT",
14167
+      "dependencies": {
14168
+        "@types/use-sync-external-store": "^0.0.3",
14169
+        "use-sync-external-store": "^1.0.0"
14170
+      },
14171
+      "peerDependencies": {
14172
+        "@types/react": "^18.2.25",
14173
+        "react": "^18.0",
14174
+        "redux": "^5.0.0"
14175
+      },
14176
+      "peerDependenciesMeta": {
14177
+        "@types/react": {
14178
+          "optional": true
14179
+        },
14180
+        "redux": {
14181
+          "optional": true
14182
+        }
14183
+      }
14184
+    },
14148 14185
     "node_modules/react-refresh": {
14149 14186
       "version": "0.11.0",
14150 14187
       "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.11.0.tgz",
@@ -14154,6 +14191,55 @@
14154 14191
         "node": ">=0.10.0"
14155 14192
       }
14156 14193
     },
14194
+    "node_modules/react-router": {
14195
+      "version": "7.0.2",
14196
+      "resolved": "https://registry.npmjs.org/react-router/-/react-router-7.0.2.tgz",
14197
+      "integrity": "sha512-m5AcPfTRUcjwmhBzOJGEl6Y7+Crqyju0+TgTQxoS4SO+BkWbhOrcfZNq6wSWdl2BBbJbsAoBUb8ZacOFT+/JlA==",
14198
+      "license": "MIT",
14199
+      "dependencies": {
14200
+        "@types/cookie": "^0.6.0",
14201
+        "cookie": "^1.0.1",
14202
+        "set-cookie-parser": "^2.6.0",
14203
+        "turbo-stream": "2.4.0"
14204
+      },
14205
+      "engines": {
14206
+        "node": ">=20.0.0"
14207
+      },
14208
+      "peerDependencies": {
14209
+        "react": ">=18",
14210
+        "react-dom": ">=18"
14211
+      },
14212
+      "peerDependenciesMeta": {
14213
+        "react-dom": {
14214
+          "optional": true
14215
+        }
14216
+      }
14217
+    },
14218
+    "node_modules/react-router-dom": {
14219
+      "version": "7.0.2",
14220
+      "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-7.0.2.tgz",
14221
+      "integrity": "sha512-VJOQ+CDWFDGaWdrG12Nl+d7yHtLaurNgAQZVgaIy7/Xd+DojgmYLosFfZdGz1wpxmjJIAkAMVTKWcvkx1oggAw==",
14222
+      "license": "MIT",
14223
+      "dependencies": {
14224
+        "react-router": "7.0.2"
14225
+      },
14226
+      "engines": {
14227
+        "node": ">=20.0.0"
14228
+      },
14229
+      "peerDependencies": {
14230
+        "react": ">=18",
14231
+        "react-dom": ">=18"
14232
+      }
14233
+    },
14234
+    "node_modules/react-router/node_modules/cookie": {
14235
+      "version": "1.0.2",
14236
+      "resolved": "https://registry.npmjs.org/cookie/-/cookie-1.0.2.tgz",
14237
+      "integrity": "sha512-9Kr/j4O16ISv8zBBhJoi4bXOYNTkFLOqSL3UDB0njXxCXNezjeyVrJyGOWtgfs/q2km1gwBcfH8q1yEGoMYunA==",
14238
+      "license": "MIT",
14239
+      "engines": {
14240
+        "node": ">=18"
14241
+      }
14242
+    },
14157 14243
     "node_modules/react-scripts": {
14158 14244
       "version": "5.0.1",
14159 14245
       "resolved": "https://registry.npmjs.org/react-scripts/-/react-scripts-5.0.1.tgz",
@@ -15037,6 +15123,12 @@
15037 15123
         "node": ">= 0.8.0"
15038 15124
       }
15039 15125
     },
15126
+    "node_modules/set-cookie-parser": {
15127
+      "version": "2.7.1",
15128
+      "resolved": "https://registry.npmjs.org/set-cookie-parser/-/set-cookie-parser-2.7.1.tgz",
15129
+      "integrity": "sha512-IOc8uWeOZgnb3ptbCURJWNjWUPcO3ZnTTdzsurqERrP6nPyv+paC55vJM0LpOlT2ne+Ix+9+CRG1MNLlyZ4GjQ==",
15130
+      "license": "MIT"
15131
+    },
15040 15132
     "node_modules/set-function-length": {
15041 15133
       "version": "1.2.2",
15042 15134
       "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz",
@@ -16369,6 +16461,12 @@
16369 16461
       "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",
16370 16462
       "license": "0BSD"
16371 16463
     },
16464
+    "node_modules/turbo-stream": {
16465
+      "version": "2.4.0",
16466
+      "resolved": "https://registry.npmjs.org/turbo-stream/-/turbo-stream-2.4.0.tgz",
16467
+      "integrity": "sha512-FHncC10WpBd2eOmGwpmQsWLDoK4cqsA/UT/GqNoaKOQnT8uzhtCbg3EoUDMvqpOSAI0S26mr0rkjzbOO6S3v1g==",
16468
+      "license": "ISC"
16469
+    },
16372 16470
     "node_modules/type-check": {
16373 16471
       "version": "0.4.0",
16374 16472
       "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz",
@@ -16674,6 +16772,15 @@
16674 16772
         "requires-port": "^1.0.0"
16675 16773
       }
16676 16774
     },
16775
+    "node_modules/use-sync-external-store": {
16776
+      "version": "1.2.2",
16777
+      "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.2.2.tgz",
16778
+      "integrity": "sha512-PElTlVMwpblvbNqQ82d2n6RjStvdSoNe9FG28kNfz3WiXilJm4DdNkEzRhCZuIDwY8U08WVihhGR5iRqAwfDiw==",
16779
+      "license": "MIT",
16780
+      "peerDependencies": {
16781
+        "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
16782
+      }
16783
+    },
16677 16784
     "node_modules/util-deprecate": {
16678 16785
       "version": "1.0.2",
16679 16786
       "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",

+ 2
- 0
package.json Näytä tiedosto

@@ -8,6 +8,8 @@
8 8
     "@testing-library/user-event": "^13.5.0",
9 9
     "react": "^18.3.1",
10 10
     "react-dom": "^18.3.1",
11
+    "react-redux": "^9.1.2",
12
+    "react-router-dom": "^7.0.2",
11 13
     "react-scripts": "5.0.1",
12 14
     "web-vitals": "^2.1.4"
13 15
   },

Loading…
Peruuta
Tallenna