Pip
apt-get update
apt-get python-pipVirtualenv
apt-get update
apt-get virtualenvCreate project and change directory
mkdir doit-backend
cd doit-backendCreate virtualenv with python3
virtualenv -p python3 envMake active virtualenv
source env/bin/activateGet source code
git clone https://github.com/crownest/doit-backend.git source (Use HTTPS)
git clone [email protected]:crownest/doit-backend.git source (Use SSH)Change directory and branch
cd source
git checkout stagingCreate required files
cp doit/settings/local-dist.py doit/settings/local.py
touch doit/settings/secrets.pyNote: Please ask secret credentials from admin.
Install requirements
pip install -r requirements/staging.txt
pip install -r requirements/extra.txtCreate database
./manage.py migrateLoad initial data
./manage.py loaddata fixtures/initial_data.jsonRun project
./manage.py runserver 0.0.0.0:8000 (http://127.0.0.1:8000)Run tests
./manage.py test doit.apps
./manage.py test doit.apps -v 2
./manage.py test doit.apps --verbosity=2Note: Verbosity level (-v or --verbosity); 0=minimal output, 1=normal output, 2=verbose output, 3=very verbose output