Skip to content

Latest commit

 

History

History
85 lines (66 loc) · 1.4 KB

File metadata and controls

85 lines (66 loc) · 1.4 KB

Development

Required Packages

Pip

apt-get update
apt-get python-pip

Virtualenv

apt-get update
apt-get virtualenv

Steps for running the project

Create project and change directory

mkdir doit-backend
cd doit-backend

Create virtualenv with python3

virtualenv -p python3 env

Make active virtualenv

source env/bin/activate

Get 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 staging

Create required files

cp doit/settings/local-dist.py doit/settings/local.py
touch doit/settings/secrets.py

Note: Please ask secret credentials from admin.

Install requirements

pip install -r requirements/staging.txt
pip install -r requirements/extra.txt

Create database

./manage.py migrate

Load initial data

./manage.py loaddata fixtures/initial_data.json

Run 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=2

Note: Verbosity level (-v or --verbosity); 0=minimal output, 1=normal output, 2=verbose output, 3=very verbose output