Component | Version |
---|---|
Python | 3.5 |
Django | 1.9 |
PostgreSQL | 9.5 |
TastyPie REST API | 0.13 |
- Preparation:
-
MacOS:
HomeBrew:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- Install
Python3
:
-
MacOS:
brew install python3
-
Linux (Ubuntu):
apt-get install python3
-
Windows:
Download from Python.ORG and install
- Install
PostgreSQL
:
-
MacOS:
brew install postgresql
-
Linux (Ubuntu):
apt-get install postgresql
-
Windows:
Download from Postgresql.ORG and install
- Configure Python's virtual environment:
-
Installation (All platforms):
pip install virtualenv
-
Creation of project's environment:
virtualenv env
inside your project's root folder -
Activating virtual environment:
. env/bin/activate
orsource env/bin/activate
- Build and install packages:
-
Makefile:
make
inside project's root
- Configuration of PostgreSQL:
-
Either create user/password/database according to:
api-avtozip/avtozip/avtozip/settings/development.py
-
Or override settings using
local.py.tmpl
file and save it:api-avtozip/avtozip/avtozip/settings/local.py
- Run development server:
make devserver