Skip to content

Commit 22e55bd

Browse files
authored
Merge pull request #5 from peterbull/init-refactor
Init refactor
2 parents 64baed7 + e69b6bc commit 22e55bd

20 files changed

+5083
-3891
lines changed

.vscode/launch.json

+94-97
Original file line numberDiff line numberDiff line change
@@ -1,102 +1,99 @@
11
{
2-
"version": "0.2.0",
3-
"configurations": [
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "FastAPI",
6+
"type": "python",
7+
"request": "launch",
8+
"module": "uvicorn",
9+
"args": ["app.main:app", "--reload"],
10+
"cwd": "${workspaceFolder}/backend",
11+
"jinja": false,
12+
"console": "integratedTerminal"
13+
},
14+
{
15+
"name": "Launch Chrome against localhost client",
16+
"request": "launch",
17+
"type": "pwa-chrome",
18+
"url": "http://localhost:3000/",
19+
"webRoot": "${workspaceFolder}/frontend/my-app",
20+
"sourceMaps": true,
21+
"skipFiles": [
22+
"<node_internals>/**/*.js",
23+
"${workspaceFolder}/frontend/my-app/node_modules/**/*.js",
24+
"${workspaceFolder}/frontend/my-app/node_modules/**/*.js",
25+
"${workspaceFolder}/frontend/my-app/node_modules/**/*.mjs",
26+
"**/build/*"
27+
]
28+
},
29+
{
30+
"name": "Backend Current .py File",
31+
"type": "python",
32+
"request": "launch",
33+
"program": "${file}",
34+
"console": "integratedTerminal",
35+
"cwd": "${workspaceFolder}/backend",
36+
"env": {
37+
"PYTHONPATH": "${workspaceFolder}/backend:${env:PYTHONPATH}"
38+
}
39+
},
40+
{
41+
"name": "Docker: Attach to FastAPI",
42+
"type": "python",
43+
"request": "attach",
44+
"port": 5678,
45+
"host": "localhost",
46+
"pathMappings": [
447
{
5-
"name": "FastAPI",
6-
"type": "python",
7-
"request": "launch",
8-
"module": "uvicorn",
9-
"args": [
10-
"app.main:app", // Replace 'main:app' with '<your_file>:<your_app_instance>' if different
11-
"--reload"
12-
],
13-
"cwd": "${workspaceFolder}/backend",
14-
"jinja": false,
15-
"console": "integratedTerminal"
16-
},
17-
{
18-
"name": "Launch Chrome against localhost client",
19-
"request": "launch",
20-
// "preLaunchTask": "npm: start",
21-
"type": "pwa-chrome",
22-
"url": "http://localhost:3000/",
23-
"webRoot": "${workspaceFolder}/frontend/my-app",
24-
"sourceMaps": true,
25-
"skipFiles": [
26-
"<node_internals>/**/*.js",
27-
"${workspaceFolder}/frontend/my-app/node_modules/**/*.js",
28-
"${workspaceFolder}/frontend/my-app/node_modules/**/*.js",
29-
"${workspaceFolder}/frontend/my-app/node_modules/**/*.mjs",
30-
"**/build/*"
31-
]
32-
},
33-
{
34-
"name": "Backend Current .py File",
35-
"type": "python",
36-
"request": "launch",
37-
"program": "${file}",
38-
"console": "integratedTerminal",
39-
"cwd": "${workspaceFolder}/backend",
40-
"env": {
41-
"PYTHONPATH": "${workspaceFolder}/backend:${env:PYTHONPATH}"
42-
}
43-
},
44-
{
45-
"name": "Docker: Attach to FastAPI",
46-
"type": "python",
47-
"request": "attach",
48-
"port": 5678,
49-
"host": "localhost",
50-
"pathMappings": [
51-
{
52-
"localRoot": "${workspaceFolder}/backend/app",
53-
"remoteRoot": "/usr/src/app/app"
54-
}
55-
]
56-
},
57-
{
58-
"name": "Docker: Attach to Celery",
59-
"type": "python",
60-
"request": "attach",
61-
"port": 5679,
62-
"host": "localhost",
63-
"pathMappings": [
64-
{
65-
"localRoot": "${workspaceFolder}/backend/app",
66-
"remoteRoot": "/usr/src/app/app"
67-
}
68-
]
69-
},
48+
"localRoot": "${workspaceFolder}/backend/app",
49+
"remoteRoot": "/usr/src/app/app"
50+
}
51+
]
52+
},
53+
{
54+
"name": "Docker: Attach to Celery",
55+
"type": "python",
56+
"request": "attach",
57+
"port": 5679,
58+
"host": "localhost",
59+
"pathMappings": [
7060
{
71-
"name": "Docker: Launch Chrome against Localhost",
72-
"type": "pwa-chrome",
73-
"request": "attach",
74-
"address": "localhost",
75-
"port": 9229,
76-
"url": "http://localhost:3000",
77-
"webRoot": "${workspaceFolder}/frontend/my-app",
78-
"sourceMaps": true,
79-
"skipFiles": [
80-
"<node_internals>/**/*.js",
81-
"${workspaceFolder}/frontend/my-app/node_modules/**/*.js",
82-
"${workspaceFolder}/frontend/my-app/node_modules/**/*.mjs",
83-
"**/build/*"
84-
]
85-
},
61+
"localRoot": "${workspaceFolder}/backend/app",
62+
"remoteRoot": "/usr/src/app/app"
63+
}
64+
]
65+
},
66+
{
67+
"name": "Docker: Launch Chrome against Localhost",
68+
"type": "pwa-chrome",
69+
"request": "attach",
70+
"address": "localhost",
71+
"port": 9229,
72+
"url": "http://localhost:3000",
73+
"webRoot": "${workspaceFolder}/frontend/my-app",
74+
"sourceMaps": true,
75+
"skipFiles": [
76+
"<node_internals>/**/*.js",
77+
"${workspaceFolder}/frontend/my-app/node_modules/**/*.js",
78+
"${workspaceFolder}/frontend/my-app/node_modules/**/*.mjs",
79+
"**/build/*"
80+
]
81+
},
82+
{
83+
"name": "Docker: Airflow Worker",
84+
"type": "debugpy",
85+
"request": "attach",
86+
"connect": {
87+
"port": 5679,
88+
"host": "localhost"
89+
},
90+
"pathMappings": [
8691
{
87-
"name": "Docker: Airflow Worker",
88-
"type": "debugpy",
89-
"request": "attach",
90-
"connect": {
91-
"port": 5679,
92-
"host": "localhost",
93-
},
94-
"pathMappings": [
95-
{
96-
"localRoot": "${workspaceFolder}/airflow",
97-
"remoteRoot": "/opt/airflow"
98-
}
99-
]
92+
"localRoot": "${workspaceFolder}/airflow",
93+
"remoteRoot": "/opt/airflow"
10094
}
101-
]
102-
}
95+
]
96+
}
97+
]
98+
}
99+

0 commit comments

Comments
 (0)