For Ubuntu:
- apt-get install python ipython python-pip node-legacy npm python-yaml
For Ubuntu 14.04 installing all these from package manager works fine. Installing PyYAML with APT will avoid some error messages when using pip.
- Grab files from GitHub:
$ git clone git@github.com:cybrairai/shifty.git
- Go to the folder with the source files
- Install Python-dependencies:
$ sudo pip install -e .
- Install Node-dependencies (global cli's):
$ sudo npm install -g bower grunt-cli
- Install Node-dependencies (normal packages):
$ npm install
(Bower is for JS-dependencies) - Continue on the updating-section
- Run migrations (creates database, ++):
$ ./migrate.sh
- Generate some events and shifts
$ ./manage.py makeevents
- Install/update dependencies:
$ bower install
- Generate new static-files (js/css):
$ grunt
(this will also run the watcher)
- Start development web server with:
$ python manage.py runserver
- Open your browser at http://localhost:8000
- The server will restart when it notices changes to Python-code
##WIndows install guide Required:
- python 2.7.9
- ipython
- python-pip
- node
- ruby
- python-yaml
- git
Following should be in your path:
- C:\Python27;
- C:\Python27\Scripts;
- C:\Ruby21-x64\bin;
- c:\Program Files (x86)\nodejs;
- C:\Users%username%\AppData\Roaming\npm
###Shifty-specific
- Clone shifty repo
- Go to the folder with the source files
- Install Python-dependencies:
pip install -e .
- Install Node-dependencies (global cli's):
npm install -g bower grunt-cli
- Install Node-dependencies (normal packages):
npm install
(Bower is for JS-dependencies) - Continue on the updating-section
-
Run migrations:
-
run
win_migrations.bat
-
Generate some events and shifts
$ .\manage.py makeevents
-
Install/update dependencies:
$ bower install
-
Generate new static-files (js/css):
$ grunt
(this will also run the watcher)