Skip to content

Local dev environment

Remote repository access

Grant the user access to the remote repository hosted on GitHub: https://github.com/RBDE-Digital-Engineering/web-framework/settings/access

Verification via SSH is prefered for security reasons: https://github.com/settings/keys

VPN connection to the develop-ing server

In order to connect to the server via SSH, a VPN tunnel via WireGuard needs to be established. Add the user to the WireGuard configuration file on the server.

nano /etc/wireguard/wg0.conf 
systemctl restart wg-quick@wg0

Clone web-framework (light) -> https://github.com/settings/keys

git clone git@github.com:RBDE-Digital-Engineering/web-framework.git 
checkout partial_django_fresh

Receive play.py with passwords/IPs

Install Python 3.12.x (any version above might not allow for the subsequent creation of the virtual Python environment)

Create virtual Python environment (venv):

py –3.12 -m virtualenv venv 
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope LocalMachine 
venv/Scripts/activate.ps1 
py -m pip install –r ./requirements.txt 
python rbde_web/play.py runserver

Create the user in the dev environment. This can be done either in the admin panel on dev.develop-ing.ch (via WireGuard connection) or in the play.py file (?).