Repository navigation
Expand file tree
/
Copy pathdata.js
More file actions
73 lines (72 loc) · 1.54 KB
/
Copy pathdata.js
File metadata and controls
73 lines (72 loc) · 1.54 KB
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
import bcrypt from 'bcryptjs';
const data = {
users: [
{
name: 'Basir',
email: 'admin@example.com',
password: bcrypt.hashSync('123456'),
isAdmin: true,
},
{
name: 'John',
email: 'user@example.com',
password: bcrypt.hashSync('123456'),
isAdmin: false,
},
],
products: [
{
// _id: '1',
name: 'Nike Slim shirt',
slug: 'nike-slim-shirt',
category: 'Shirts',
image: '/images/p1.jpg', // 679px × 829px
price: 120,
countInStock: 10,
brand: 'Nike',
rating: 4.5,
numReviews: 10,
description: 'high quality shirt',
},
{
// _id: '2',
name: 'Adidas Fit Shirt',
slug: 'adidas-fit-shirt',
category: 'Shirts',
image: '/images/p2.jpg',
price: 250,
countInStock: 0,
brand: 'Adidas',
rating: 4.0,
numReviews: 10,
description: 'high quality product',
},
{
// _id: '3',
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',
},
{
// _id: '4',
name: 'Adidas Fit Pant',
slug: 'adidas-fit-pant',
category: 'Pants',
image: '/images/p4.jpg',
price: 65,
countInStock: 5,
brand: 'Puma',
rating: 4.5,
numReviews: 10,
description: 'high quality product',
},
],
};
export default data;