Commit b2ad097 committed Nov 14, 2024 · 3 / 3
1 parent 87b08d1 commit b2ad097 Copy full SHA for b2ad097
File tree 3 files changed +39
-4
lines changed
3 files changed +39
-4
lines changed Original file line number Diff line number Diff line change 14
14
- *** References***
15
15
- ChatGPT
16
16
- ---
17
+ - #### Use "cursor"
18
+ - ` cursor `
19
+ - *** Notes***
20
+ - ` Ctrl-l ` # Open Chat
21
+ - ` Ctrl-i ` # Open Compositor
22
+ - ` Ctrl-k ` # Pop up a chat window (When you selected some code)
23
+ - ` Ctrl-w ` # Close current window (Like in Chromium)
24
+ - ` Ctrl-Tab ` # Switch between files
25
+ - *** References***
26
+ - ` Give me the Cursor AI editor cheat sheet ` # Artificial intelligence
27
+ - ---
Original file line number Diff line number Diff line change 175
175
- `npx wrangler d1 execute products --remote --command="SELECT * FROM products"` # Validate the data
176
176
- `npx wrangler deploy` # Deploy your Worker on the Internet
177
177
- ***Notes***
178
+ - `vi ~/.config/store/auth-db/wrangler.toml` # Define environment variables
179
+ ```
180
+ [vars]
181
+ JWT_SECRET = "yourValue"
182
+ ```
183
+ - `vi ~/.config/store/auth-db/src/index.js` # Access the secret
184
+ ```
185
+ env.JWT_SECRET
186
+ ```
187
+ - `wrangler tail` # Show real-time logs
188
+ ```
189
+ (error) Signup error: Error: D1_ERROR: no such table: users: SQLITE_ERROR
190
+ ```
191
+ - `vi ~/.config/store/auth-db/schema.sql` # Remember to add `IF NOT EXISTS` to create the `users` table
192
+ ```
193
+ DROP TABLE IF EXISTS users;
194
+ CREATE TABLE IF NOT EXISTS users (
195
+ id INTEGER PRIMARY KEY AUTOINCREMENT,
196
+ email TEXT UNIQUE NOT NULL,
197
+ password_hash TEXT NOT NULL,
198
+ created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
199
+ last_login DATETIME
200
+ );
201
+ ```
178
202
- Create (Add the new product to the database)
179
203
```
180
204
curl --request POST http://localhost:8787/add_product \
Original file line number Diff line number Diff line change 19
19
- Demon Lord, Retry! / 重来吧,魔王大人! S01E12.S02E07 0929
20
20
- 蓝色监狱 S01E24.S02E6
21
21
- 地。-关于地球的运动 S01E07
22
- - 暗杀女仆冥土小姐 S01E02 animation
23
- - 被逐出队伍的治愈师,其实是最强的 S01E02
24
- - 魔王2099 S01E01
25
- - 乱马1/2 S01E02
22
+ - 暗杀女仆冥土小姐 S01E06
23
+ - 被逐出队伍的治愈师,其实是最强的 S01E06
24
+ - 魔王2099 S01E05
25
+ - 乱马1/2 S01E02 animation
26
26
- 战神联盟 21
27
27
- 神墓 - 26
28
28
- 天影 - 06
You can’t perform that action at this time.
0 commit comments