This is a Vagrant configuration to set up a complete, virtualized development environment for JHipster users.
The JHipster "development box" is a complete development environment for JHipster users.
It requires to have Vagrant installed on your machine.
It is fully based on Open Source software, most importantly:
- Ubuntu
- Spring Tool Suite
- Chromium Web browser
The "Quick setup" provides a pre-build Virtual Machine, and the "Manual setup" let you build your Virtual Machine yourself. We recommend you use the "Quick setup" if you don't know which option to choose.
Pre-built distributions of this "development box" are available on Atlas.
To install the latest distribution, please run:
On Mac or Linux
vagrant init jhipster/jhipster-devbox; vagrant up --provider virtualbox
On Windows
vagrant init jhipster/jhipster-devbox
vagrant up --provider virtualbox
You can then tune your installation, by following the next sections on customizing and configuring your "development box".
This generates a new "development box" directly from this repository.
- Clone this repository:
git clone https://github.com/jhipster/jhipster-devbox.git
- Run
vagrant up
This is very important! Modify your system properties, depending on your host's hardware. We recommend, at least:
- 4 CPUs
- 8 Gb of RAM
- 128 Mb of video RAM
Start up the new box:
- Login using the
vagrant
user (not the 'Ubuntu' user which is selected by default)- Password is
vagrant
, be careful the default keymap is QWERTY! - Before logging in, click on the Ubuntu logo to select the Window environment you want to use
- We recommend you use
GNOME Flashback (Metacity)
, as it doesn't use 3D effects and will be a lot faster on VirtualBox
- We recommend you use
- Password is
- Configure your keyboard, if you are not using an English keyboard, once you have logged in:
- If you chose
GNOME Flashback (Metacity)
:- Go to
Applications > System Tools > System Settings
- Select
Text Entry
- Use the
+
sign to add your keyboard layout
- Go to
- If you kept the default Ubuntu desktop:
- Click the "EN" icon on the top right of your screen
- Select `Text Entry Settings...``
- Use the
+
sign to add your keyboard layout - Then select your new keymap by clicking on the "EN" icon again
- If you chose
- Configure your IDE
- Spring Tool Suite is installed in the
/opt/sts-bundle/
directory
- Spring Tool Suite is installed in the
- Configure your MySQL database
- Default password for the
root
user isvagrant
- MySQL workbench is installed by default
- If you want to use MySQL with JHipster, don't forget to edit your
application-dev.yml
andapplication-prod.yml
files
- Default password for the
- Configure you browser
- Firefox is installed
- Chromium, which is the Open-Source version of Google Chrome, is also installed
- Other available tools
- Generate your application
- Run
yo jhipster
and use JHipster normally
- Run
- Use the JHipster tools
- Running
mvn
will run your JHipster application on port8080
. As this port is forwarded to your host, you can also usehttp://localhost:8080
on your host machine - Running
grunt
will launch your AngularJS front-end with BrowserSync on port3000
: it is also forwarded to your host, so you can also usehttp://localhost:3000
on your host machine
- Running