Skip to content

Commit b24a3af

Browse files
committed
Server Initial Setup
0 parents  commit b24a3af

18 files changed

+7653
-0
lines changed

.env

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
VITE_CLERK_PUBLISHABLE_KEY=pk_test_cGxlYXNlZC1nb2JsaW4tOTMuY2xlcmsuYWNjb3VudHMuZGV2JA

.eslintrc.cjs

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
module.exports = {
2+
root: true,
3+
env: { browser: true, es2020: true },
4+
extends: [
5+
'eslint:recommended',
6+
'plugin:react/recommended',
7+
'plugin:react/jsx-runtime',
8+
'plugin:react-hooks/recommended',
9+
],
10+
ignorePatterns: ['dist', '.eslintrc.cjs'],
11+
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
12+
settings: { react: { version: '18.2' } },
13+
plugins: ['react-refresh'],
14+
rules: {
15+
'react/jsx-no-target-blank': 'off',
16+
'react-refresh/only-export-components': [
17+
'warn',
18+
{ allowConstantExport: true },
19+
],
20+
},
21+
}

.gitignore

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?
25+
26+
.env*.local

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# React + Vite
2+
3+
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
4+
5+
Currently, two official plugins are available:
6+
7+
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
8+
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh

components.json

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "default",
4+
"rsc": false,
5+
"tsx": false,
6+
"tailwind": {
7+
"config": "tailwind.config.js",
8+
"css": "src/index.css",
9+
"baseColor": "neutral",
10+
"cssVariables": true,
11+
"prefix": ""
12+
},
13+
"aliases": {
14+
"components": "@/components",
15+
"utils": "@/lib/utils"
16+
}
17+
}

data.js

+250
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,250 @@
1+
const products = [
2+
{
3+
id: 1,
4+
name: "Classic White T-Shirt",
5+
image:
6+
"https://kurukkan.in/cdn/shop/files/MOD06038_b88b6137-13b6-47e9-ac9c-e15de4cb9dd3.jpg?v=1709188973&width=493",
7+
price: 19.99,
8+
sizes: {
9+
S: { chest: 91, neck: 39, shoulder: 46, waist: 76, armLength: 58 },
10+
},
11+
defaultSize: "S",
12+
13+
fitPreference: ["Regular", "Slim"],
14+
},
15+
{
16+
id: 2,
17+
name: "Casual Denim Shirt",
18+
image:
19+
"https://www.jiomart.com/images/product/original/rvdlikzxjb/18-_024_denim-shirt-men-s-denim-cutaway-collar-slim-fit-half-sleeve-casual-shirt-blue-3x-large-product-images-rvdlikzxjb-0-202303110647.jpg?im=Resize=(600,750)",
20+
price: 39.99,
21+
sizes: {
22+
M: { chest: 97, neck: 40.5, shoulder: 46, waist: 82, armLength: 59 },
23+
},
24+
defaultSize: "M",
25+
26+
fitPreference: ["Regular", "Slim", "Relaxed"],
27+
},
28+
{
29+
id: 3,
30+
name: "Graphic Print T-Shirt",
31+
image:
32+
"https://veirdo.in/cdn/shop/files/07_c777cb07-bdb7-4ed2-8dc0-df264fae37e1.jpg?v=1717406989&width=360",
33+
price: 24.99,
34+
sizes: {
35+
S: { chest: 90, neck: 38, shoulder: 45, waist: 75, armLength: 57 },
36+
},
37+
defaultSize: "S",
38+
39+
fitPreference: ["Regular", "Slim"],
40+
},
41+
{
42+
id: 4,
43+
name: "Short Sleeve Button-Up",
44+
image: "https://m.media-amazon.com/images/I/814dW847ykL._SY550_.jpg",
45+
price: 29.99,
46+
sizes: {
47+
XXL: { chest: 111, neck: 43, shoulder: 50, waist: 96, armLength: 32 },
48+
},
49+
defaultSize: "XXL",
50+
51+
fitPreference: ["Regular", "Slim", "Relaxed"],
52+
},
53+
{
54+
id: 5,
55+
name: "Lightweight Hoodie",
56+
image: "https://m.media-amazon.com/images/I/81nKdsCpsTL._SX522_.jpg",
57+
price: 49.99,
58+
sizes: {
59+
L: { chest: 102, neck: 41, shoulder: 47, waist: 87, armLength: 61 },
60+
},
61+
defaultSize: "L",
62+
63+
fitPreference: ["Regular", "Relaxed"],
64+
},
65+
{
66+
id: 6,
67+
name: "Knitted Sweater",
68+
image:
69+
"https://images.bestsellerclothing.in/data/JJ/27-june-2023/255066902_g0.jpg?width=1080&height=1355&mode=fill&fill=blur&format=auto",
70+
price: 59.99,
71+
sizes: {
72+
XXL: { chest: 111, neck: 43, shoulder: 50, waist: 96, armLength: 63 },
73+
},
74+
defaultSize: "XXL",
75+
76+
fitPreference: ["Regular", "Slim"],
77+
},
78+
{
79+
id: 7,
80+
name: "Plaid Flannel Shirt",
81+
image:
82+
"https://m.media-amazon.com/images/I/41SEIEsYdoL._SX300_SY300_QL70_FMwebp_.jpg",
83+
price: 34.99,
84+
sizes: {
85+
S: { chest: 90, neck: 38, shoulder: 45, waist: 75, armLength: 58 },
86+
},
87+
defaultSize: "S",
88+
89+
fitPreference: ["Regular", "Relaxed"],
90+
},
91+
{
92+
id: 8,
93+
name: "Polo T-Shirt",
94+
image: "https://m.media-amazon.com/images/I/51K0XmUVDPL._SX522_.jpg",
95+
price: 29.99,
96+
sizes: {
97+
M: { chest: 96, neck: 40, shoulder: 47, waist: 81, armLength: 29 },
98+
},
99+
defaultSize: "M",
100+
101+
fitPreference: ["Regular", "Slim"],
102+
},
103+
{
104+
id: 9,
105+
name: "Basic Crew Neck T-Shirt",
106+
image: "https://m.media-amazon.com/images/I/610N1pajwKL._SX522_.jpg",
107+
price: 19.99,
108+
sizes: {
109+
XL: { chest: 105, neck: 41, shoulder: 48, waist: 90, armLength: 60 },
110+
},
111+
defaultSize: "XL",
112+
113+
fitPreference: ["Regular", "Slim"],
114+
},
115+
{
116+
id: 10,
117+
name: "Bamboo Fabric T-Shirt",
118+
image: "https://m.media-amazon.com/images/I/61NbaG5eNBL._SX679_.jpg",
119+
price: 34.99,
120+
sizes: {
121+
XXL: { chest: 111, neck: 43, shoulder: 50, waist: 96, armLength: 62 },
122+
},
123+
defaultSize: "XXL",
124+
125+
fitPreference: ["Regular", "Slim"],
126+
},
127+
{
128+
id: 11,
129+
name: "Hawaiian Print Shirt",
130+
image: "https://m.media-amazon.com/images/I/814do9FVbDL._SY679_.jpg",
131+
price: 39.99,
132+
sizes: {
133+
XXL: { chest: 112, neck: 43.5, shoulder: 49, waist: 97, armLength: 32 },
134+
},
135+
defaultSize: "XXL",
136+
137+
fitPreference: ["Regular", "Relaxed"],
138+
},
139+
{
140+
id: 12,
141+
name: "Activewear Training Shirt",
142+
image: "https://m.media-amazon.com/images/I/61Y7GT5qxuL._SX679_.jpg",
143+
price: 29.99,
144+
sizes: {
145+
M: { chest: 95, neck: 39, shoulder: 46, waist: 80, armLength: 58 },
146+
},
147+
defaultSize: "M",
148+
149+
fitPreference: ["Slim", "Regular"],
150+
},
151+
{
152+
id: 13,
153+
name: "Warm Winter Jacket",
154+
image: "https://m.media-amazon.com/images/I/71++HKtV9aL._SY550_.jpg",
155+
price: 89.99,
156+
sizes: {
157+
S: { chest: 92, neck: 39, shoulder: 45, waist: 77, armLength: 60 },
158+
},
159+
defaultSize: "S",
160+
161+
fitPreference: ["Regular", "Relaxed"],
162+
},
163+
{
164+
id: 14,
165+
name: "Stylish Bomber Jacket",
166+
image: "https://m.media-amazon.com/images/I/51gaACg68DL._SY679_.jpg",
167+
price: 79.99,
168+
sizes: {
169+
XL: { chest: 106, neck: 42, shoulder: 49, waist: 91, armLength: 62 },
170+
},
171+
defaultSize: "XL",
172+
173+
fitPreference: ["Regular", "Slim"],
174+
},
175+
{
176+
id: 15,
177+
name: "Denim Jacket",
178+
image: "https://m.media-amazon.com/images/I/61zXf1BClKL._SY679_.jpg",
179+
price: 69.99,
180+
sizes: {
181+
XXL: { chest: 110, neck: 42, shoulder: 49, waist: 95, armLength: 62 },
182+
},
183+
defaultSize: "XXL",
184+
185+
fitPreference: ["Regular", "Slim", "Relaxed"],
186+
},
187+
{
188+
id: 16,
189+
name: "Oversized Baggy Fit",
190+
image: "https://m.media-amazon.com/images/I/61MPGbBpC3L._SY679_.jpg",
191+
price: 29.99,
192+
sizes: {
193+
S: { chest: 91, neck: 39, shoulder: 46, waist: 76, armLength: 58 },
194+
},
195+
defaultSize: "S",
196+
197+
fitPreference: ["Oversized", "Relaxed"],
198+
},
199+
{
200+
id: 17,
201+
name: "Cotton Linen Blend Shirt",
202+
image: "https://m.media-amazon.com/images/I/41QcAdFdjtL.jpg",
203+
price: 49.99,
204+
sizes: {
205+
M: { chest: 97, neck: 40.5, shoulder: 46, waist: 82, armLength: 59 },
206+
},
207+
defaultSize: "M",
208+
209+
fitPreference: ["Regular", "Relaxed"],
210+
},
211+
{
212+
id: 18,
213+
name: "Soft Touch Sweater",
214+
image: "https://m.media-amazon.com/images/I/81EHEXU10bL._SY679_.jpg",
215+
price: 54.99,
216+
sizes: {
217+
M: { chest: 96, neck: 40, shoulder: 47, waist: 81, armLength: 60 },
218+
},
219+
defaultSize: "M",
220+
221+
fitPreference: ["Regular", "Slim"],
222+
},
223+
{
224+
id: 19,
225+
name: "Relaxed Fit Chino Shirt",
226+
image: "https://m.media-amazon.com/images/I/71-biZIoTkL._SX522_.jpg",
227+
price: 39.99,
228+
sizes: {
229+
M: { chest: 95, neck: 39, shoulder: 46, waist: 80, armLength: 59 },
230+
231+
},
232+
defaultSize: "M",
233+
234+
fitPreference: ["Relaxed", "Regular"],
235+
},
236+
{
237+
id: 20,
238+
name: "Performance Sports Tee",
239+
image: "https://m.media-amazon.com/images/I/61zfo184NoL._SX679_.jpg",
240+
price: 34.99,
241+
sizes: {
242+
S: { chest: 92, neck: 39, shoulder: 45, waist: 77, armLength: 57 },
243+
},
244+
defaultSize: "S",
245+
246+
fitPreference: ["Slim", "Regular"],
247+
},
248+
];
249+
250+
export default products;

jsconfig.json

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"compilerOptions": {
3+
// ...
4+
"baseUrl": ".",
5+
"paths": {
6+
"@/*": [
7+
"./src/*"
8+
]
9+
}
10+
// ...
11+
}
12+
}
13+

0 commit comments

Comments
 (0)