Acme is a Spring Boot Java application with an AngularJS client.
The application is live in production mode at http://ec2-34-244-186-177.eu-west-1.compute.amazonaws.com:8080
IntelliJ is the recommended dev environment for this project. Clone the git repo and create a new IntelliJ from existing sources, and point to your local cloned repo.
Before you can build this project, you must install and configure the following dependencies on your machine:
- [Node.js][]: We use Node to run a development web server and build the project. Depending on your system, you can install Node either from source or as a pre-packaged bundle.
- [Yarn][]: We use Yarn to manage Node dependencies. Depending on your system, you can install Yarn either from source or as a pre-packaged bundle.
After installing Node, you should be able to run the following command to install development tools. You will only need to run this command when dependencies change in package.json.
yarn install
We use [Gulp][] as our build system. Install the Gulp command-line tool globally with:
yarn global add gulp-cli
Run the following commands in two separate terminals to create a blissful development experience where your browser auto-refreshes when files change on your hard drive.
./mvnw
gulp
[Bower][] is used to manage CSS and JavaScript dependencies used in this application. You can upgrade dependencies by
specifying a newer version in bower.json. You can also run bower update
and bower install
to manage dependencies.
Add the -h
flag on any command to see how you can use it. For example, bower update -h
.
For further instructions on how to develop with JHipster, have a look at [Using JHipster in development][].
To optimize the acme application for production, run:
./mvnw -Pprod clean package
This will concatenate and minify the client CSS and JavaScript files. It will also modify index.html
so it references these new files.
To ensure everything worked, run:
java -jar target/*.war
Then navigate to http://localhost:8080 in your browser.
Refer to [Using JHipster in production][] for more details.
To launch your application's tests, run:
./mvnw clean test
The application is set to connect to a Sandbox AWS database for both prod and dev modes.