czwartek, 15 września 2016

How to install JHipster on Ubuntu

JHipster is like Sonata for PHP and Symfony, but I'd say it's simpler. Comparing to Symfony and Sonata, we get:

  • similar entity generator.
  • CRUD panels like in SonataAdminBundle
  • user management system out of the box


According to https://jhipster.github.io/installation/ instruction, in Ubuntu we have to do folliwing steps [I assume you have Java 8 and Git already installed]:

Step 0 [optional]


Install Apache Tomcat :

Download Tomcat from http://tomcat.apache.org



$ sudo mkdir /opt/tomcat

$ sudo tar xvf apache-tomcat-8*tar.gz -C /opt/tomcat --strip-components=1


Start Tomcat:

$ sudo /opt/tomcat/bin/startup.sh

You can stop it:

$ sudo /opt/tomcat/bin/shutdown.sh

Step 1

Install Node.js

$ curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -nodesource_setup.sh

$ sudo apt-get install nodejs


Step 2

Install Yeoman:



$ sudo npm install -g yo


In result I've got:

Yeoman Doctor
Running sanity checks on your system

✔ Global configuration file is valid
✔ NODE_PATH matches the npm root
✔ Node.js version
✔ No .bowerrc file in home directory
✔ No .yo-rc.json file in home directory
✖ npm version

Your npm version is outdated.

Upgrade to the latest version by running:
npm install -g npm


so I did:

$ npm install -g npm

Yeoman and again:

$ sudo npm install -g yo


Now I've got :


Yeoman Doctor
Running sanity checks on your system

✔ Global configuration file is valid
✔ NODE_PATH matches the npm root
✔ Node.js version
✔ No .bowerrc file in home directory
✔ No .yo-rc.json file in home directory
✔ npm version

Everything looks all right!    



Step 3

Install Bower:

$ sudo npm install -g bower

Step 4

Install Gulp


$ sudo npm install -g gulp-cli


Step 5

Install JHipster


$ sudo npm install -g generator-jhipster




Brak komentarzy:

Prześlij komentarz