-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathADMIN_ACCESS_DIAGRAM.txt
More file actions
276 lines (225 loc) · 11.7 KB
/
ADMIN_ACCESS_DIAGRAM.txt
File metadata and controls
276 lines (225 loc) · 11.7 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
================================================================================
ADMIN DASHBOARD ACCESS FLOW
================================================================================
METHOD 1: VIA LOGIN PAGE
========================
Step 1: Visit Homepage
http://localhost:3000
↓
Step 2: Click Login Button (Top Right Corner)
[Header Bar]
[Logo] [Search] [Wishlist] [Cart] [Login] ← Click Here
↓
Step 3: Enter Admin Credentials
Email: sajibuddin729@gmail.com
Password: **************
[Login Button] ← Click
↓
Step 4: See User Menu
Click User Icon (Top Right)
↓
[Dropdown Menu]
├─ Your Name
├─ Your Email
├─ My Profile
├─ My Orders
├─ Admin Dashboard ← CLICK THIS
└─ Logout
↓
Step 5: Admin Dashboard Opens!
http://localhost:3000/admin
METHOD 2: DIRECT URL (If Already Logged In)
============================================
Step 1: Make sure you're logged in as admin
↓
Step 2: Visit directly
http://localhost:3000/admin
↓
Step 3: Dashboard loads immediately!
================================================================================
ADMIN DASHBOARD STRUCTURE
================================================================================
ADMIN DASHBOARD (admin/)
↓
┌───────────────────┼───────────────────┐
↓ ↓ ↓
SIDEBAR MAIN CONTENT HEADER
======== ============ ======
• Dashboard ←→ 📊 Stats Cards [User Icon]
• Products ←→ ├─ Total Orders ↓
• Orders ←→ ├─ Total Users [Profile Menu]
• Users ←→ ├─ Products ├─ Admin Dashboard
• Logout ←→ └─ Revenue ├─ Logout
└─ Settings
📋 Recent Orders
├─ Order ID
├─ Customer
├─ Amount
└─ Status
================================================================================
ADMIN FEATURES MAP
================================================================================
┌─ DASHBOARD ─────────────────────────────────────┐
│ │
│ Overview of entire store │
│ ├─ Total Orders: 42 │
│ ├─ Total Users: 15 │
│ ├─ Total Products: 12 │
│ ├─ Total Revenue: $3,240 │
│ └─ Recent Orders (last 5-10) │
│ │
└──────────────────────────────────────────────────┘
┌─ PRODUCTS ──────────────────────────────────────┐
│ │
│ Manage your product catalog │
│ ├─ View all products │
│ ├─ Add New Product │
│ │ └─ Name, Price, Category, Stock, Image │
│ ├─ Edit Product │
│ │ └─ Update any details │
│ └─ Delete Product │
│ └─ Remove from store │
│ │
└──────────────────────────────────────────────────┘
┌─ ORDERS ────────────────────────────────────────┐
│ │
│ Manage customer orders │
│ ├─ View all orders │
│ ├─ See customer details │
│ │ └─ Name, Email, Phone, Address │
│ ├─ See order items & total │
│ └─ Update Order Status │
│ ├─ Pending │
│ ├─ Shipped │
│ └─ Delivered │
│ │
└──────────────────────────────────────────────────┘
┌─ USERS ─────────────────────────────────────────┐
│ │
│ View all registered customers │
│ ├─ User List │
│ ├─ Name & Email │
│ ├─ Phone & Address │
│ ├─ Joined Date │
│ └─ Admin Status │
│ │
└──────────────────────────────────────────────────┘
================================================================================
SAMPLE PRODUCTS INCLUDED
================================================================================
Pre-loaded 12 Products:
────────────────────────
1. Handmade Ceramic Mug
└─ $25.99 | Stock: 50 | Rating: 4.5 ⭐
2. Vintage Leather Wallet
└─ $45.99 | Stock: 30 | Rating: 4.8 ⭐
3. Organic Skin Care Set
└─ $59.99 | Stock: 40 | Rating: 4.6 ⭐
4. Handwoven Basket
└─ $35.99 | Stock: 25 | Rating: 4.4 ⭐
5. Artisan Jewelry Set
└─ $89.99 | Stock: 15 | Rating: 4.9 ⭐
6. Wooden Cutting Board
└─ $39.99 | Stock: 35 | Rating: 4.7 ⭐
7. Scented Candle Collection
└─ $49.99 | Stock: 45 | Rating: 4.5 ⭐
8. Bohemian Throw Pillow
└─ $32.99 | Stock: 50 | Rating: 4.6 ⭐
9. Silk Scarf
└─ $55.99 | Stock: 20 | Rating: 4.7 ⭐
10. Handmade Book
└─ $28.99 | Stock: 30 | Rating: 4.8 ⭐
11. Bamboo Plant Pot
└─ $22.99 | Stock: 60 | Rating: 4.4 ⭐
12. Coffee Lover Box
└─ $72.99 | Stock: 25 | Rating: 4.9 ⭐
All with beautiful Unsplash images! 📸
================================================================================
QUICK REFERENCE
================================================================================
ADMIN LOGIN CREDENTIALS:
────────────────────────
Email: sajibuddin729@gmail.com
Password: **************
AFTER LOGIN:
────────────
• Click User Icon (Top Right)
• Select "Admin Dashboard"
• Or visit: http://localhost:3000/admin
DASHBOARD ACCESS:
──────────────────
1. Homepage → http://localhost:3000
2. Login Page → Click "Login" button
3. Enter Credentials
4. Dashboard → Click "Admin Dashboard" in user menu
5. Or Direct → http://localhost:3000/admin
SIDEBAR NAVIGATION:
───────────────────
From dashboard sidebar, access:
• Dashboard ← View overview
• Products ← Manage products
• Orders ← Manage orders
• Users ← View customers
• Logout ← Sign out
================================================================================
HELPFUL KEYBOARD SHORTCUTS
================================================================================
While logged in as admin:
• Ctrl/Cmd + Shift + J → Open browser console (errors & debugging)
• F12 → Open developer tools
• F5 → Refresh page
• Ctrl/Cmd + + → Zoom in
• Ctrl/Cmd + - → Zoom out
================================================================================
COMMON TASKS QUICK MENU
================================================================================
┌─────────────────────────────────────────────────────┐
│ WHAT DO YOU WANT TO DO? │
├─────────────────────────────────────────────────────┤
│ │
│ ☐ Login as Admin │
│ → http://localhost:3000 → Login │
│ │
│ ☐ View Dashboard │
│ → User Icon → Admin Dashboard │
│ │
│ ☐ View All Products │
│ → Admin Dashboard → Products Tab │
│ │
│ ☐ Add New Product │
│ → Admin Dashboard → Products → Add New Product │
│ │
│ ☐ Manage Orders │
│ → Admin Dashboard → See "Recent Orders" │
│ │
│ ☐ Update Order Status │
│ → Admin Dashboard → Orders → Click Order │
│ │
│ ☐ View All Users │
│ → Admin Dashboard → Users Tab │
│ │
│ ☐ Check Sales Stats │
│ → Admin Dashboard → Top cards show stats │
│ │
└─────────────────────────────────────────────────────┘
================================================================================
TROUBLESHOOTING QUICK GUIDE
================================================================================
ISSUE: Admin Dashboard button not showing
FIX: Make sure you're logged in as sajibuddin729@gmail.com
(Not a customer account)
ISSUE: Can't find Admin Dashboard link
FIX: After login, click User Icon (Top Right)
Look for "Admin Dashboard" option
ISSUE: Getting error page
FIX: Make sure backend is running (you should see in terminal)
Make sure MongoDB is running (mongod in another terminal)
ISSUE: Products not loading
FIX: Refresh the page (Ctrl/Cmd + R)
Check backend is running
Check .env.local has API_URL set
ISSUE: Port 3000 is already in use
FIX: Kill the process on that port
Or change PORT in .env.local
Then restart: npm run dev
================================================================================