Following are the steps for creating a local development environment for Donor9:
-
Install pip aka the cheeseshop - Python package manager
sudo apt-get install python-pip
-
Install virtualenv - a pakage that will create an isolated environment our project:
sudo pip install virtualenv
-
Create our virtualenv:
virtualenv Donor9
-
Activate virtualenv:
cd Donor9 source bin/activate
-
Install git:
sudo apt-get install git
-
Clone Donor9 reposiotry:
git clone https://github.com/hacker9/Donor9.git
-
Install requirements:
pip install -R requirements.txt
-
Sync DB:
python manage.py syncdb --settings=Donor9.settings_local
-
Run development server:
python manage.py runserver --settings=Donor9.settings_local
-
Rock on:
-
If you were using the pre-created DB, following are the login credentials:
uname: admin pwd: admin