Skip to content

Commit 5a8e96c

Browse files
authored
Adding da-trey-research-python sample (#161)
* Adding da-trey-research-python sample * sample update * Adding preview gif and updating urls in sample.json
1 parent 02428dd commit 5a8e96c

70 files changed

Lines changed: 3617 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
.git*
2+
.vscode
3+
__azurite_db*__.json
4+
__blobstorage__
5+
__queuestorage__
6+
local.settings.json
7+
test
8+
.venv
9+
.env
10+
scripts/
11+
http/
12+
sampleDocs/
13+
*.md
14+
.funcignore
15+
.localConfigs
16+
_storage_emulator/
17+
env/
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# TeamsFx files
2+
env/.env.*.user
3+
env/.env.local
4+
.localConfigs
5+
appPackage/build
6+
7+
# dependencies
8+
node_modules/
9+
10+
# misc
11+
.env
12+
.deployment
13+
.DS_Store
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"recommendations": [
3+
"TeamsDevApp.ms-teams-vscode-extension"
4+
]
5+
}
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Launch App in Teams (Edge)",
6+
"type": "msedge",
7+
"request": "launch",
8+
"url": "https://m365.cloud.microsoft/chat/entity1-d870f6cd-4aa5-4d42-9626-ab690c041429/${local:agent-hint}?auth=2&developerMode=Basic",
9+
"cascadeTerminateToConfigurations": [
10+
"Attach to Backend"
11+
],
12+
"presentation": {
13+
"group": "all",
14+
"hidden": true
15+
},
16+
"internalConsoleOptions": "neverOpen"
17+
},
18+
{
19+
"name": "Launch App in Teams (Chrome)",
20+
"type": "chrome",
21+
"request": "launch",
22+
"url": "https://m365.cloud.microsoft/chat/entity1-d870f6cd-4aa5-4d42-9626-ab690c041429/${local:agent-hint}?auth=2&developerMode=Basic",
23+
"cascadeTerminateToConfigurations": [
24+
"Attach to Backend"
25+
],
26+
"presentation": {
27+
"group": "all",
28+
"hidden": true
29+
},
30+
"internalConsoleOptions": "neverOpen"
31+
},
32+
{
33+
"name": "Preview in Copilot (Edge)",
34+
"type": "msedge",
35+
"request": "launch",
36+
"url": "https://m365.cloud.microsoft/chat/entity1-d870f6cd-4aa5-4d42-9626-ab690c041429/${agent-hint}?auth=2&developerMode=Basic",
37+
"presentation": {
38+
"group": "remote",
39+
"order": 1
40+
},
41+
"internalConsoleOptions": "neverOpen"
42+
},
43+
{
44+
"name": "Preview in Copilot (Chrome)",
45+
"type": "chrome",
46+
"request": "launch",
47+
"url": "https://m365.cloud.microsoft/chat/entity1-d870f6cd-4aa5-4d42-9626-ab690c041429/${agent-hint}?auth=2&developerMode=Basic",
48+
"presentation": {
49+
"group": "remote",
50+
"order": 2
51+
},
52+
"internalConsoleOptions": "neverOpen"
53+
},
54+
{
55+
"name": "Attach to Backend",
56+
"type": "debugpy",
57+
"request": "attach",
58+
"connect": {
59+
"host": "localhost",
60+
"port": 9091
61+
},
62+
"presentation": {
63+
"group": "all",
64+
"hidden": true
65+
},
66+
"internalConsoleOptions": "neverOpen"
67+
}
68+
],
69+
"compounds": [
70+
{
71+
"name": "Debug in Copilot (Edge)",
72+
"configurations": [
73+
"Launch App in Teams (Edge)",
74+
"Attach to Backend"
75+
],
76+
"preLaunchTask": "Start Teams App Locally",
77+
"presentation": {
78+
"group": "all",
79+
"order": 1
80+
},
81+
"stopAll": true
82+
},
83+
{
84+
"name": "Debug in Copilot (Chrome)",
85+
"configurations": [
86+
"Launch App in Teams (Chrome)",
87+
"Attach to Backend"
88+
],
89+
"preLaunchTask": "Start Teams App Locally",
90+
"presentation": {
91+
"group": "all",
92+
"order": 2
93+
},
94+
"stopAll": true
95+
}
96+
]
97+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"debug.onTaskErrors": "abort",
3+
"json.schemas": [
4+
{
5+
"fileMatch": [
6+
"/aad.*.json"
7+
],
8+
"schema": {}
9+
}
10+
]
11+
}
Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
// This file is automatically generated by Microsoft 365 Agents Toolkit.
2+
// The teamsfx tasks defined in this file require Microsoft 365 Agents Toolkit version >= 5.0.0.
3+
// See https://aka.ms/teamsfx-tasks for details on how to customize each task.
4+
{
5+
"version": "2.0.0",
6+
"tasks": [
7+
{
8+
"label": "Start Teams App Locally",
9+
"dependsOn": [
10+
"Validate prerequisites",
11+
"Start local tunnel",
12+
"Start Azurite emulator",
13+
"Create resources",
14+
"Build project",
15+
"Start application"
16+
],
17+
"dependsOrder": "sequence"
18+
},
19+
{
20+
"label": "Validate prerequisites",
21+
"type": "teamsfx",
22+
"command": "debug-check-prerequisites",
23+
"args": {
24+
"prerequisites": [
25+
"python",
26+
"m365Account",
27+
"portOccupancy"
28+
],
29+
"portOccupancy": [
30+
7071
31+
]
32+
}
33+
},
34+
{
35+
// Start the local tunnel service to forward public URL to local port and inspect traffic.
36+
// See https://aka.ms/teamsfx-tasks/local-tunnel for the detailed args definitions.
37+
"label": "Start local tunnel",
38+
"type": "teamsfx",
39+
"command": "debug-start-local-tunnel",
40+
"args": {
41+
"type": "dev-tunnel",
42+
"ports": [
43+
{
44+
"portNumber": 7071,
45+
"protocol": "http",
46+
"access": "public",
47+
"writeToEnvironmentFile": {
48+
"endpoint": "OPENAPI_SERVER_URL"
49+
}
50+
}
51+
],
52+
"env": "local"
53+
},
54+
"isBackground": true,
55+
"problemMatcher": "$teamsfx-local-tunnel-watch"
56+
},
57+
{
58+
"label": "Create resources",
59+
"type": "teamsfx",
60+
"command": "provision",
61+
"args": {
62+
"env": "local"
63+
}
64+
},
65+
{
66+
"label": "Build project",
67+
"type": "teamsfx",
68+
"command": "deploy",
69+
"args": {
70+
"env": "local"
71+
}
72+
},
73+
{
74+
"label": "Start application",
75+
"dependsOn": [
76+
"Start backend"
77+
]
78+
},
79+
{
80+
"label": "Start backend",
81+
"type": "shell",
82+
"command": "func host start --python --port 7071",
83+
"isBackground": true,
84+
"options": {
85+
"cwd": "${workspaceFolder}"
86+
},
87+
"problemMatcher": {
88+
"pattern": {
89+
"regexp": "^.*$",
90+
"file": 0,
91+
"location": 1,
92+
"message": 2
93+
},
94+
"background": {
95+
"activeOnStart": true,
96+
"beginsPattern": "^.*(Job host stopped|signaling restart).*$",
97+
"endsPattern": "^.*(Worker process started and initialized|Host lock lease acquired by instance ID).*$"
98+
}
99+
},
100+
"presentation": {
101+
"reveal": "silent"
102+
},
103+
"dependsOn": "Start Azurite emulator"
104+
},
105+
{
106+
"label": "Start Azurite emulator",
107+
"type": "shell",
108+
"command": "azurite --silent --location .azurite --debug .azurite/debug.log",
109+
"isBackground": true,
110+
"problemMatcher": {
111+
"pattern": [
112+
{
113+
"regexp": "^.*$",
114+
"file": 0,
115+
"location": 1,
116+
"message": 2
117+
}
118+
],
119+
"background": {
120+
"activeOnStart": true,
121+
"beginsPattern": "Azurite",
122+
"endsPattern": "successfully listening"
123+
}
124+
},
125+
"options": {
126+
"cwd": "${workspaceFolder}"
127+
},
128+
"presentation": {
129+
"reveal": "silent"
130+
}
131+
},
132+
{
133+
"label": "pip install",
134+
"type": "shell",
135+
"command": "pip install -r requirements.txt",
136+
"options": {
137+
"cwd": "${workspaceFolder}"
138+
},
139+
"presentation": {
140+
"reveal": "silent"
141+
}
142+
}
143+
]
144+
}

0 commit comments

Comments
 (0)