Files
2025-05-28 09:55:51 +08:00

62 lines
1.4 KiB
Markdown

### Purpose
to test if cpu loading is occured when browser is offline
### check list before you start
### backend
- [] start docker
- docker (/home/logic/\_wsl_workspace/HKSingleParty/04_poc/009_poc_chatroom_implement/docker)
- `./dc_up.sh`
- `./db_push.sh`
- supavase available on port `http://localhost:8000`
- [] check if codeium started and can index files
- start android emulator
- start chrome://inspect
### frontend
```bash
$ cd /home/logic/_wsl_workspace/HKSingleParty/04_poc/009_poc_chatroom_implement/mobile_main
$ dc_up.sh
$ npm run dev
```
### results
| project name | result |
| ------------------ | :-------------: |
| nextjs-fresh | no cpu loading |
| nextjs-slack-clone | loading occured |
| nextjs-realtime | x |
need to run before example start
```bash
$ ./reset.sh
```
http://localhost:8000
- supabase
- this_password_is_insecure_and_should_be_updated
<!-- test sign up -->
http://localhost:3000/test
goto http://localhost:8025
look for new email
append `:8000` in the link inside email
## in supabase dashboard, goto:
-> sql editor -> quick starts -> user management starter
http://localhost:8000/project/default/api
SUPABASE_URL=http://localhost:8000
ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyAgCiAgICAicm9sZSI6ICJhbm9uIiwKICAgICJpc3MiOiAic3VwYWJhc2UtZGVtbyIsCiAgICAiaWF0IjogMTY0MTc2OTIwMCwKICAgICJleHAiOiAxNzk5NTM1NjAwCn0.dc_X5iR_VP_qT0zsiyj_I_OZ2T9FtRU2BBNWN8Bu4GE