#HyreNow
###Installing Dependencies
- Bower:
bower install
- Node Modules:
sudo npm install
###Compiling
grunt build
###Installing Backend (steps to be followed in order):
- Mysql Server and client (Ubuntu):
sudo apt-get install mysql-server; apt-get install mysql-client
- Installing Virtualenv for python (Ubuntu):
sudo apt-get install python-virtualenv
- Creating Virtualenv :
virtualenv env_1
- Activating virtualenv :
source bin/env_1/activate
- Installing python packages via pip (from requirements.txt file) :
pip install -r requirements.txt
- Installing gunicorn via apt-get (ubuntu) :
sudo apt-get install gunicorn
- Installing Supervisor via apt-get (ubuntu) :
sudo apt-get install -y supervisor
(links: http://goo.gl/wbYcYq, http://goo.gl/Z8tlVO) - Make a new supervisor conf - /etc/supervisor/conf.d/hyrenow.conf with following content :
[program:hyrenow] command = /home/hyrenow/env_1/bin/gunicorn run:app directory = /home/hyrenow
- Use following commands to manage supervisor :
sudo supervisorctl reread sudo supervisorctl update sudo supervisorctl start hyrenow