These system dependencies are required, Linux OS is preferred.
| System dependency | Version | Usage |
|---|---|---|
| bash | 5 | Setup scripts |
| docker | >= 20 | Build images |
| docker-compose | >= 2 | Backend Development environment |
| Nodejs | LTS | Frontend |
| yarn | 1.22 | Install Nodejs dependencies |
Docker has to be able run as a non root user for more info check
Post-installation steps for Linux | Docker Documentation
If you are using Linux, put this into your bashrc .bashrc OR .zhsrc, it's needed for the file permissions.
export UID=$(id -u)
export GID=$(id -g)- Run this command, to setup the development environment
bash shscripts/setup_dev.shIf you are using Windows you'll have to inspect shscripts/setup_dev.sh, and find the equivalent commands, or use the Linux Subsystem.
- Load development command utilities with
source shscripts/dev.sh- Activate the backend server, to test if everything has worked
runserver- Activate the frontend server, to test if everything has worked
yarn devIt is recommend to check the commands of shscripts/dev.sh it has a ton of useful commands.
If you want to source the commands
source shscripts/dev.shAPI REST documentation is located at
http://127.0.0.1:8000/api/docs