#Set up Django
- Install PIP
$easy_install pip
- Install VirtualEVN via PIP
$pip install virtualenv
#Set up dependencies whithin the virtual enviroment
The following README assumes that you have virtualenv and python 3.4.x installed. In this README.txt the following symbol, >>, denotes command line input.
The first step is to clone the repository from the following address: https://github.com/TrainerProjectF13X/trainer_web_app.git
##Start the virtual Env
- Configure the virtual environment
$sudo virtualenv -p [path to python3.4.x] [path to cloned repo] Eg. sudo virtualenv -p python3 .
- Now change your directory into the cloned repository and activate the virtual environment
$source bin/activate
- you should obsever in are in a virtual environment, install all dependencies via following command
$pip install -r requirements.txt
- Migrate the database
$python manage.py makemigrations $python manage.py migrate
- runserver
$python manage.py runserver
#Install NPM and Node
- Install HomeBrew
- Install Node
$brew node
- Use NPM to Install pakcages
=============================================================================================== If you get and error like this run the following command
Command "/usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-44VQfW /psycopg2/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n') , file, 'exec'))" install --record /tmp/pip-46Ysyb-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-44VQfW/psycopg
$sudo apt-get install libpq-dev python-dev And then retry.
This should install all the dependencies needed in order to run the project. If you add any please update the file accordingly.