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¶
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
Install required python packages by running:
$ (sudo) pip install -r requirements.txt
Prepare dictionary repository - TODO taipsedog
https://pydic.readthedocs.org/en/latest/Introduction.html#preparing-a-pydic-dictionary
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
- Set wibses-related Django settings
TODO taipsedog
Sample - do this similarly to: http://django-getpaid.readthedocs.org/en/latest/installation.html#enabling-django-application http://django-getpaid.readthedocs.org/en/latest/settings.html
- Run the backend server
$ python manage.py runserver
running from PyCharm is advised though
- Navigate to wibses/yo and download dependencies:
$ cd wibses/yo $ npm install $ bower install
- Sitll inside wibses/yo run the frontend development server:
$ grunt serve
It should open the browser automatically.