Project setup guide - for Developers

Prerequisites

  • Project is developed under GNU/Linux. All used tools work also on MacOS and Windows.

  • Project is developed under PyCharm 3.X. ( Make sure you are using JetBrains Codestyle to indent your code. )

  • Here are packages for *buntu 13.10 64 bit. Install their equivalents on the OS of your choice:

    • General: bash-completion git ubuntu-restricted-extras meld
    • Database: sqlite libsqlite3-dev
    • Node.JS: npm nodejs (sudo add-apt-repository -y ppa:chris-lea/node.js)
    • Python 2.7: python python-gpgme python-software-properties python-pip python-sphinx python-dev
    • Other: ruby-compass ruby1.9.1

Step-by-step setup guide

  1. Get the source code from https://github.com/vucalur/django-wibses and navigate to the download directory

    $ git clone https://github.com/vucalur/django-wibses
    $ cd django-wibses
    
  2. Install required python packages by running:

$ (sudo) pip install -r requirements.txt
  1. Prepare dictionary repository - TODO taipsedog

    https://pydic.readthedocs.org/en/latest/Introduction.html#preparing-a-pydic-dictionary

  2. Add django-wibses to your django site:

INSTALLED_APPS = (
   ...
   'wibses',
   'wibses.data_store',
   'wibses.py_dict'
 )

TODO taipsedog: No ‘wibses.data_store’ and ‘wibses.py_dict’ - importing only ‘wibses’ shall do the trick

rst reference: http://sphinx-doc.org/rest.html

  1. Set wibses-related Django settings
  1. Run the backend server
$ python manage.py runserver

running from PyCharm is advised though

  1. Navigate to wibses/yo and download dependencies:
$ cd wibses/yo
$ npm install
$ bower install
  1. Sitll inside wibses/yo run the frontend development server:
$ grunt serve

It should open the browser automatically.