Monday, February 22, 2016

emberjs CentOS 7 setup

========= SETUP =========
* CentOS 7 Example *
### dependencies ###

yum install git,npm,nodejs;
npm install -g ember-cli
npm install -g bower
npm install -g watchman
npm install -g phantomjs
### Both should output a version number ###node -v
npm -v
npm install -g npm@latest
### open the firewall ###

iptables -I INPUT 1 -p tcp --dport 49152 -j ACCEPT
iptables -I INPUT 1 -p tcp --dport 4200 -j ACCEPT
iptables-save > /etc/sysconfig/iptables
iptables-restore < /etc/sysconfig/iptables
### setup your project ###

git clone git@github.com:me/my-app.git
cd my-app
###### NOT AS ROOT ######

npm install
bower install
### start ember server ###

ember server