Last active
April 18, 2025 12:15
-
-
Save J535D165/9dd94fec840115c844059658904f7607 to your computer and use it in GitHub Desktop.
Start ASReview LAB development environment
This file contains hidden or 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": "startFrontendServer", | |
| "type": "shell", | |
| "command": "npm start", | |
| "problemMatcher": [], | |
| "options": { | |
| "cwd": "${workspaceFolder}/asreview/webapp" | |
| } | |
| }, | |
| { | |
| "label": "startBackendServer_NoAuth", | |
| "type": "shell", | |
| "command": "${command:python.interpreterPath}", | |
| "args": [ | |
| "-m", | |
| "flask", | |
| "run", | |
| "--debug" | |
| ], | |
| "problemMatcher": [], | |
| "options": { | |
| "cwd": "${workspaceFolder}/asreview/webapp", | |
| "env": { | |
| "ASREVIEW_LAB_AUTHENTICATION": "false" | |
| } | |
| } | |
| }, | |
| { | |
| "label": "startFrontendServer_NoAuth", | |
| "type": "shell", | |
| "command": "npm start", | |
| "problemMatcher": [], | |
| "options": { | |
| "cwd": "${workspaceFolder}/asreview/webapp", | |
| "env": { | |
| "ASREVIEW_LAB_AUTHENTICATION": "false" | |
| } | |
| } | |
| }, | |
| { | |
| "label": "startModelServer", | |
| "type": "shell", | |
| "command": "python -m asreview task-manager", | |
| "problemMatcher": [], | |
| "options": { | |
| "cwd": "${workspaceFolder}" | |
| } | |
| }, | |
| { | |
| "label": "startASReviewDevServers", | |
| "dependsOn": [ | |
| "startBackendServer", | |
| "startModelServer", | |
| "startFrontendServer" | |
| ], | |
| "problemMatcher": [] | |
| }, | |
| { | |
| "label": "startASReviewDevServers_NoAuth", | |
| "dependsOn": [ | |
| "startBackendServer_NoAuth", | |
| "startModelServer", | |
| "startFrontendServer_NoAuth" | |
| ], | |
| "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