📌 git clone https://github.com/procollab-github/api.git
🔑 Copy .env.example to .env and change api settings
Before installing dependencies, make sure that you have python 3.11 (see the recommendations section below)
- 🐍 Install poetry with command
pip install poetry==1.2.2 - 📎 Install dependencies with command
poetry install - 🐚 Активируйте виртуальное окружение:
poetry shell
🎓 Run python manage.py migrate
🚀 Run project via python manage.py runserver
You can run project in docker with commands from Makefile (e.g. make up)
Clone Pyenv from the official GitHub repository:
curl https://pyenv.run | bash Add Pyenv to your shell profile (e.g., .bashrc, .bash_profile, or .zshrc):
export PATH="$HOME/.pyenv/bin:$PATH"eval "$(pyenv init --path)"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)" Apply changes to your shell environment:
source ~/.bashrc # or equivalent profile, e.g., for Zsh use .zshrcVerify Pyenv is installed correctly:
pyenv --version
Once Pyenv is set up, you can install Python 3.11 with the following steps:
Install Python 3.11:
pyenv install 3.11Verify Python 3.11 has been installed:
pyenv versions
To set Python 3.11 as the default global version, use the following command:
pyenv local 3.11This will switch your system's Python interpreter to use Python 3.11 by default.
Check that Python 3.11 is now the active version:
python --versionYou should see:
Python 3.11.0To install pre-commit simply run inside the shell:
pre-commit installTo run it on all of your files, do
pre-commit run --all-filesOSError: cannot load library 'gobject-2.0-0': error 0x7e. Additionally, ctypes.util.find_library() did not manage to locate a library called 'gobject-2.0-0'
Go to WeasyPrint docs step by step install dependencies. If the error persists, add the path to the windows environment variable: C:\msys64\mingw64\bin