Skip to content

BazzalSeed/trainer_web_app

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Set up Django

  1. Install PIP

$easy_install pip

  1. 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.

Clone the repo

The first step is to clone the repository from the following address: https://github.com/TrainerProjectF13X/trainer_web_app.git

##Start the virtual Env

  1. Configure the virtual environment

$sudo virtualenv -p [path to python3.4.x] [path to cloned repo] Eg. sudo virtualenv -p python3 .

  1. Now change your directory into the cloned repository and activate the virtual environment

$source bin/activate

  1. you should obsever in are in a virtual environment, install all dependencies via following command

$pip install -r requirements.txt

  1. Migrate the database

$python manage.py makemigrations $python manage.py migrate

  1. runserver

$python manage.py runserver


#Install NPM and Node

  1. Install HomeBrew

$/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

  1. Install Node

$brew node

  1. 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 95.4%
  • JavaScript 2.2%
  • HTML 1.7%
  • Other 0.7%