Editing Docassemble Code in VS Code
Introduction
We don't use Docassemble's Playground to edit code. This is because the Playground is too small and also doesn't work so well with Github, especially private repositories. Instead, we use Visual Studio Code and some custom python scripts to do our editing work and push our code to Docassemble for testing.
Overview
- We code using Visual Studio Code
- All Github work is done on our PC. We don't use Docassemble's GitHub integration
- The Digital-Law-Lab repository has the utility scripts we use for pushing code from VS Code to Docassemble
Code Lifecycle
- Clone GitHub repo to local PC
- create a 'Project' in your Docassemble playground which will be used for running and testing
- run
code .in the cloned directory - Code away
- Use docassemble_playground_manager to push code from your PC to your Docassemble Project
- test and run
- Commit and push changes to GitHub occasionally for code reviews and for promotion to production
- Go to step 3 and repeat!