-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnotes
88 lines (67 loc) · 1.49 KB
/
notes
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
UX
- Home page
- Browse Games
- My Library
- Friends online
All game data
- Game ID
- Name
- Description
- Image
- Platforms [
- id
]
Platforms
- id
- name
- description
All user data
- id
- name
- email
- password
- games [
- Game ID
- platforms [
platform id
]
]
Flow
Load browse screen - shows top 10 games
Present a search bar to search for filtered games
Searching for games
- keywords
- filters
Adding games
Enter website
- presented with a banner page to welcome and show options and ask to registers / login
- Once logged in, check db for games for user
- if no games, show browse screen
- if games show library
- Each game card loaded from API on browse screen
- show title, and image
- on click of a gamecard, show list of platforms
- next to each platform item, show option to add to library
Backend
User:
- Register User
- Login User
- Delete User
- Update User
auth
- id
- name
- email
- password
userGames
- id
- userId
- map {
gameId,
platformId
}
click my library
get list of game/platform pairs from userGames where userId === user.id
for each pair, create a game card
for each game card get the game details from rawg using game ID and the platforms from the platform id
just need user, userGames