/avtozip-backend

AvtoZip repository API/Admin

Primary LanguagePython

Project for AvtoZip backend API and admin

Badges

Circle CI codecov.io Coverage Status

Component Stack

Component Version
Python 3.5
Django 1.9
PostgreSQL 9.5
TastyPie REST API 0.13

Installation instructions

  1. Preparation:
  • MacOS:

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

  1. Install Python3:
  • MacOS:

    brew install python3
  • Linux (Ubuntu):

    apt-get install python3
  • Windows:

    Download from Python.ORG and install

  1. Install PostgreSQL:
  • MacOS:

    brew install postgresql
  • Linux (Ubuntu):

    apt-get install postgresql
  • Windows:

    Download from Postgresql.ORG and install

  1. 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 or source env/bin/activate

  1. Build and install packages:
  • Makefile:

    make inside project's root

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

  1. Run development server:

make devserver