Skip to content

installation and setup

Venu Vardhan Reddy Tekula edited this page Mar 16, 2021 · 3 revisions

load the project

git clone https://github.com/vchrombie/grimoirelab-sortinghat/
git checkout muggle

django backend

pyenv local 3.6.13
python --version
mkdir venv && python -m venv venv && source venv/bin/activate
pip install -r requirements.txt
./manage.py migrate --settings=config.settings.devel
./manage.py createsuperuser --settings=config.settings.devel
./manage.py runserver --settings=config.settings.devel

testing backend

pip install flake8
flake8
./manage.py test --settings=config.settings.testing

vue ui app frontend

cd ui
yarn install
yarn serve

testing frontend

yarn lint
yarn test:unit -u

using poetry

pyenv local 3.6.13
python --version
poetry install
source .venv/bin/activate
poetry run python manage.py test --settings=config.settings.testing

not supported for python versions other than 3.6 need to install a few more dependencies

pip install django-cors-headers wheel
pip install mysqlclient==2.0.1 PyJWT==1.7.1
Clone this wiki locally