My Wiki!

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
devops:xhr:dev:local_dev [2025/10/22 17:45] tddevops:xhr:dev:local_dev [2025/10/23 16:00] (current) – [Run] td
Line 9: Line 9:
 export API_HOST=http://localhost:8080 --> use local backend (devlocal repo, identitiy-management-service?? as proxy) export API_HOST=http://localhost:8080 --> use local backend (devlocal repo, identitiy-management-service?? as proxy)
 ``` ```
- +### AI agent
-## AI agent+
  
 platform-frontend-app/src/shared/services/sse/SseServiceImpl.ts:54-56 platform-frontend-app/src/shared/services/sse/SseServiceImpl.ts:54-56
Line 19: Line 18:
         const url = `${baseUrl}${path}         const url = `${baseUrl}${path}
 ``` ```
 +### Run
 +
 +```
 +. .env
 +npm run dev
 +```
 +
 +### dev user
 +
 +thuy.dang+001@x-hr.co
 +1S2N
  
 # Start Agent # Start Agent
Line 217: Line 227:
 ``` ```
 ### Troubleshooting ### Troubleshooting
 +#### Pass email form:
 +
 ``` ```
 curl -X POST http://localhost:8080/v1/im/auth/express-login \ curl -X POST http://localhost:8080/v1/im/auth/express-login \
Line 222: Line 234:
   -d '{"email": "demo@demo.com"}'   -d '{"email": "demo@demo.com"}'
  
 +```
 +
 +#### Get Token and me
 +
 +```
 +TOKEN=$(curl -X POST http://localhost:8080/v1/im/auth/login \\n  -H "Content-Type: application/json" \\n  -d '{"email": "demo@demo.com", "password": "DemoDemo" }' | jq -r '.data.access_token'   
 +echo $TOKEN  
 +curl http://localhost:8080/v1/im/me \\n  -H "Content-Type: application/json" \\n-H "Authorization: Bearer ${TOKEN}"  
 ``` ```
  

Navigation