See here how to set up dev environment: https://github.com/borgbackup/borgweb/blob/master/docs/installation.rst