-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.cursorrules
197 lines (191 loc) · 6.71 KB
/
.cursorrules
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
# INSTRUCTIONS
- BUILD IN A TDD FASHION -> WRITE THE TESTS FIRST -> THEN WRITE THE CODE
- THIS IS A FULL STACK APP which means that we can leverage Node.js within the ./app/api folder
# TECK STACK
- EXPO.IO, to build the app
- EXPO ROUTER with Server Actions and API routes
- NATIVEWIND, styling native with TailwindCSS
- PRISMA ORM, to handle database operations
- tRPC, to handle API requests
- TYPESCRIPT
- THIRDWEB SDK (thirdweb.com)
- BUN, to run the app
# TESTING
- JEST, to run tests
- REACT NATIVE TESTING LIBRARY, to run tests
- MAESTRO E2E, to run tests
# CODING STYLE
- FUNCTIONAL PROGRAMMING
- READABILITY OVER CONCISE
- KISS PRINCIPLE
- COMMENT AT TOP OF FILE EXPLAINING WHAT THE FILE IS FOR
- USE TYPESCRIPT TO THE MAX
#CURRENT FILE STRUCTURE
tree -I 'node_modules|scripts|migrations|generated|demo.gif|e2e|assets|api|build|.git|.cxx|.gitignore |ios|android|.*' -a -L 4
├── app
│ ├── (tabs)
│ │ ├── (chat)
│ │ │ ├── Chat.tsx
│ │ │ └── _layout.tsx
│ │ ├── (discover)
│ │ │ ├── _layout.tsx
│ │ │ ├── discoverList.tsx
│ │ │ └── discoverMap.tsx
│ │ ├── (home)
│ │ │ ├── _layout.tsx
│ │ │ └── homeIndex.tsx
│ │ ├── (settings)
│ │ │ ├── _layout.tsx
│ │ │ ├── settings.tsx
│ │ │ └── settingsProfile.tsx
│ │ ├── _layout.tsx
│ │ └── scanAddress.tsx
│ ├── _layout.tsx
│ ├── gettingStarted.tsx
│ ├── index.tsx
│ ├── profiles
│ │ └── [address].tsx
│ ├── wrongAccount.tsx
│ └── wsegue.tsx
├── app.json
├── babel.config.js
├── bun.lockb
├── codegen.ts
├── codegen.yml
├── components.json
├── compose.yaml
├── dockerfile
├── eas.json
├── entrypoint.sh
├── env.d.ts
├── expo-env.d.ts
├── global.css
├── graphql.schema.json
├── index.js
├── lib
│ ├── components
│ │ ├── AttestationItem.tsx
│ │ ├── ConnectButtonThirdweb.tsx
│ │ ├── ErrorBoudary.tsx
│ │ ├── GetStartedCard.tsx
│ │ ├── InputWithButton.tsx
│ │ ├── MainButton.tsx
│ │ ├── MapView.tsx
│ │ ├── MySegmentedControl.tsx
│ │ ├── ProfileListItem.tsx
│ │ ├── Rating.tsx
│ │ ├── ReviewListItem.tsx
│ │ ├── SuspenseFallback.tsx
│ │ ├── Toast.tsx
│ │ ├── WebNotImplemented.tsx
│ │ ├── connect-modal-v5
│ │ │ ├── ConnectWithPhoneNumber.tsx
│ │ │ ├── ConnectWithSocial.tsx
│ │ │ ├── Connected.tsx
│ │ │ ├── ExternalWallets.tsx
│ │ │ └── index.tsx
│ │ ├── nativeWindInterop.tsx
│ │ ├── primitives
│ │ │ ├── label
│ │ │ ├── slot.tsx
│ │ │ ├── switch
│ │ │ └── types.ts
│ │ └── ui
│ │ ├── avatar.tsx
│ │ ├── button.tsx
│ │ ├── card.tsx
│ │ ├── input.tsx
│ │ ├── label.tsx
│ │ ├── switch.tsx
│ │ ├── text.tsx
│ │ ├── textarea.tsx
│ │ ├── tooltip.tsx
│ │ └── typography.tsx
│ ├── constants.ts
│ ├── graphql
│ │ ├── client.ts
│ │ └── index.graphql
│ ├── screens
│ │ ├── coinbase-redirect
│ │ │ ├── CoinbaseRedirect.tsx
│ │ │ └── CoinbaseRedirect.web.tsx
│ │ ├── discover-layout
│ │ │ ├── DiscoverLayout.tsx
│ │ │ └── DiscoverLayout.web.tsx
│ │ ├── discover-list
│ │ │ ├── DiscoverList.tsx
│ │ │ └── DiscoverList.web.tsx
│ │ ├── discover-map
│ │ │ ├── DiscoverMap.tsx
│ │ │ └── DiscoverMap.web.tsx
│ │ ├── getting-started
│ │ │ ├── GettingStarted.tsx
│ │ │ └── GettingStarted.web.tsx
│ │ ├── home-index
│ │ │ ├── HomeIndex.tsx
│ │ │ └── HomeIndex.web.tsx
│ │ ├── home-layout
│ │ │ ├── HomeLayout.tsx
│ │ │ └── HomeLayout.web.tsx
│ │ ├── index-layout
│ │ │ ├── Header.tsx
│ │ │ ├── IndexLayout.tsx
│ │ │ ├── IndexLayout.web.tsx
│ │ │ ├── ThirdwebProvider.tsx
│ │ │ └── useRedirectAuth.tsx
│ │ ├── login
│ │ │ ├── Login.tsx
│ │ │ └── Login.web.tsx
│ │ ├── profile
│ │ │ ├── Profile.tsx
│ │ │ └── Profile.web.tsx
│ │ ├── scan-address
│ │ │ ├── ScanAddress.tsx
│ │ │ └── ScanAddress.web.tsx
│ │ ├── settings-layout
│ │ │ ├── SettingsLayout.tsx
│ │ │ ├── SettingsLayout.web.tsx
│ │ │ ├── profile
│ │ │ └── settings
│ │ ├── tabs-layout
│ │ │ ├── LayoutTabs.tsx
│ │ │ └── LayoutTabs.web.tsx
│ │ └── wrong-account
│ │ ├── WrongAccount.tsx
│ │ └── WrongAccount.web.tsx
│ ├── services
│ │ ├── db
│ │ │ ├── dev.db
│ │ │ ├── functions.ts
│ │ │ ├── importCSV.js
│ │ │ ├── prismaClient.ts
│ │ │ ├── profiles_rows.csv
│ │ │ └── schema.prisma
│ │ ├── storage.client.ts
│ │ ├── supabase.ts
│ │ ├── thirdwebAuth.ts
│ │ └── thirdwebClient.ts
│ ├── trpc-server
│ │ ├── context.ts
│ │ ├── routers
│ │ │ ├── _app.ts
│ │ │ └── zod.ts
│ │ └── trpc.ts
│ ├── useColorScheme.tsx
│ └── utils
│ ├── attestations.ts
│ ├── constants.tsx
│ ├── eas.tsx
│ ├── hooks.tsx
│ ├── index.ts
│ ├── tRPCProvider.tsx
│ ├── trpc.ts
│ ├── types.tsx
│ └── uploading.ts
├── metro.config.js
├── nativewind-env.d.ts
├── package.json
├── roadmap.md
├── server.js
├── tailwind.config.js
├── tsconfig.json