diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 00000000..f92fceb3 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,63 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Alfred", + "type": "python", + "request": "launch", + "module": "uvicorn", + "cwd": "${workspaceFolder}/alfred", + "args": ["main:app", "--host", "0.0.0.0", "--port", "9000", "--reload"], + "env": { + "CELERY_BROKER": "mongodb://localhost:27017/celery", + "CELERY_BACKEND": "mongodb://localhost:27017/celery", + "DB_URL": "mongodb://localhost:27017", + "DB_NAME": "alfred", + "GOOGLE_APPLICATION_CREDENTIALS": "/cred.json", + "ALFRED_SECRET_KEY": "ALFRED_SECRET_KEY" + }, + "jinja": false, + "justMyCode": false + }, + { + "name": "Otto", + "type": "python", + "request": "launch", + "module": "uvicorn", + "cwd": "${workspaceFolder}/alfred/otto/", + "args": [ + "otto.preview:previewAPI", + "--host", + "0.0.0.0", + "--port", + "9000", + "--reload" + ], + "jinja": false, + "justMyCode": false + }, + { + "name": "Alfred Tests", + "type": "python", + "request": "launch", + "module": "pytest", + "cwd": "${workspaceFolder}", + "args": ["-v"], + "jinja": false, + "justMyCode": false + }, + { + "name": "Otto Tests", + "type": "python", + "request": "launch", + "module": "pytest", + "cwd": "${workspaceFolder}/alfred/otto/", + "args": ["-v"], + "jinja": false, + "justMyCode": true + } + ] +}