Compiling AngularJS interface

From Integrics Wiki
Revision as of 22:09, 1 March 2018 by Dcunningham (talk | contribs) (Created page with "As root: On Debian based systems: apt-get install nodejs On Redhat based systems: curl --silent --location https://rpm.nodesource.com/setup_6.x | bash - yum inst...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

As root:

On Debian based systems:

   apt-get install nodejs

On Redhat based systems:

   curl --silent --location https://rpm.nodesource.com/setup_6.x | bash -
   yum install nodejs

Then:

   npm install
   npm install -g bower
   npm install -g gulp
   ln -s /usr/bin/nodejs /usr/local/bin/node
   bower install
   cd /opt/enswitch/current/web
   gulp build

Apache can now serve from /opt/enswitch/current/web/dist/. You can run a development version using "gulp serve".