Skip to content

SmallBlackHole/bot-codespaces

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Run TeamsFx Bot in Codespaces

Steps to debug:

  1. Open the repo in Codespaces.
  2. Click Teams Toolkit icon from the left sidebar and Sign in M365 account.

    Note:

    After login your M365 account, it will be redirected to a localhost endpoint like http://localhost:xxx/?code=xxxxxxxxx.

    Copy the localhost endpoint from the address bar and run below command in the VS Code terminal in Codespaces: curl <localhost-endpoint>

    Then you should login your M365 account.

  3. Copy the local address for https://localhost:3978:
  4. Go to .vscode/tasks.json and search for botMessagingEndpoint, replace the value with <local_address>/api/messages. The value of <local_address> is the address you copied in last step.
  5. Type F5.
  6. After the teams web client is launched, to trigger a notification, run below command in the VS Code terminal in Codespaces: curl -X POST http://localhost:3978/api/notification

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •