Last active
March 22, 2024 09:46
-
-
Save J535D165/9dd94fec840115c844059658904f7607 to your computer and use it in GitHub Desktop.
Start ASReview LAB development environment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "startBackendServer", | |
"type": "shell", | |
"command": "${command:python.interpreterPath}", | |
"args": ["-m", | |
"flask", | |
"run", | |
"--debug" | |
], | |
"problemMatcher": [], | |
"options": { | |
"cwd": "${workspaceFolder}/asreview/webapp", | |
"env": { | |
"ASREVIEW_LAB_ALLOW_ACCOUNT_CREATION": "true", | |
"ASREVIEW_LAB_SECRET_KEY": "secret", | |
} | |
} | |
}, | |
{ | |
"label": "startBackendServer_NoAuth", | |
"type": "shell", | |
"command": "${command:python.interpreterPath}", | |
"args": ["-m", | |
"flask", | |
"run", | |
"--debug" | |
], | |
"problemMatcher": [], | |
"options": { | |
"cwd": "${workspaceFolder}/asreview/webapp", | |
"env": { | |
"ASREVIEW_LAB_LOGIN_DISABLED": "true", | |
} | |
} | |
}, | |
{ | |
"label": "startFrontendServer", | |
"type": "shell", | |
"command": "npm start", | |
"problemMatcher": [], | |
"options": { | |
"cwd": "${workspaceFolder}/asreview/webapp" | |
} | |
}, | |
{ | |
"label": "startASReviewDevServers", | |
"dependsOn": [ | |
"startBackendServer", | |
"startFrontendServer" | |
], | |
"problemMatcher": [] | |
}, | |
{ | |
"label": "startASReviewDevServers_NoAuth", | |
"dependsOn": [ | |
"startBackendServer_NoAuth", | |
"startFrontendServer" | |
], | |
"problemMatcher": [] | |
}, | |
{ | |
"label": "renderDocumentation", | |
"type": "shell", | |
"command": "${command:python.interpreterPath}", | |
"args": [ | |
"-m", | |
"sphinx", | |
"-b", | |
"html", | |
"docs/source", | |
"docs/build" | |
], | |
"problemMatcher": [], | |
"options": { | |
"cwd": "${workspaceFolder}" | |
} | |
}, | |
{ | |
"label": "openDocumentation", | |
"type": "shell", | |
"command": "open docs/build/index.html", | |
"problemMatcher": [], | |
"options": { | |
"cwd": "${workspaceFolder}" | |
} | |
}, | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment