-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdata.js
86 lines (86 loc) · 1.92 KB
/
data.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
import bcrypt from "bcryptjs";
const data = {
users: [
{
name: "riyaz",
email: "[email protected]",
password: bcrypt.hashSync("123456"),
isAdmin: true,
},
{
name: "faiyaz",
email: "[email protected]",
password: bcrypt.hashSync("123456"),
isAdmin: false,
},
{
name: "anjum",
email: "[email protected]",
password: bcrypt.hashSync("123456"),
isAdmin: false,
},
],
products: [
{
name: "Nike Slim shirt",
slug: "nike-slim-shirt",
category: "Shirts",
image: "/images/p1.jpg", // 679px × 829px
price: 120,
countInStock: 0,
brand: "Nike",
rating: 4.5,
numReviews: 10,
description: "high quality shirt",
},
{
name: "Adidas Fit Shirt",
slug: "adidas-fit-shirt",
category: "Shirts",
image: "/images/p2.jpg",
price: 250,
countInStock: 20,
brand: "Adidas",
rating: 4.0,
numReviews: 10,
description: "high quality product",
},
{
name: "Nike Slim Pant",
slug: "nike-slim-pant",
category: "Pants",
image: "/images/p3.jpg",
price: 25,
countInStock: 15,
brand: "Nike",
rating: 4.5,
numReviews: 14,
description: "high quality product",
},
{
name: "Adidas Fit Pant",
slug: "adidas-fit-pant",
category: "Pants",
image: "/images/p5.jpg",
price: 65,
countInStock: 5,
brand: "Puma",
rating: 4.5,
numReviews: 10,
description: "high quality product",
},
// {
// name: "Poly Cotton Casual Shirt",
// slug: "poly-cotton-casual-shirt",
// category: "Shirts",
// image: "/images/p7.jpg",
// price: 197,
// countInStock: 11,
// brand: "Poly",
// rating: 4.5,
// numReviews: 6,
// description: "medium quality product",
// },
],
};
export default data;